CVE-2025-6224
MEDIUM 6.5CVSS 3.1juju/utils leaks private key in certs
Certificate generation in juju/utils using the cert.NewLeaf function could include private information. If this certificate were then transferred over the network in plaintext, an attacker listening on that network could sniff the certificate and trivially extract the private key from it.
- Published
- 1 Jul 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security@ubuntu.com
- NVD status
- Analyzed
- Weakness
- CWE-312
- Also known as
- GHSA-h34r-jxqm-qgprGO-2025-3798
- Sources
- NVDJSONOSV GHSA-h34r-jxqm-qgprJSONOSV GO-2025-3798JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@ubuntu.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | canonical | juju/utilscpe:2.3:a:canonical:juju\/utils:*:*:*:*:*:go:*:* |
>= 4.0.0, < 4.0.4 | 4.0.4 |
| OSV | Go | github.com/juju/utils/v4/cert | < 4.0.4 | 4.0.4 |
| OSV | Go | github.com/juju/utils | all versions | |
| OSV | Go | github.com/juju/utils/v2 | all versions | |
| OSV | Go | github.com/juju/utils/v3 | all versions | |
| OSV | Go | github.com/juju/utils/v4 | < 4.0.4 | 4.0.4 |
References
- https://github.com/juju/utils/security/advisories/GHSA-h34r-jxqm-qgpr · Exploit, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2025-6224 · ADVISORY
- https://github.com/juju/utils/commit/766f27d7bcd10433453a9764509a864c17a46a76 · WEB, FIX
- https://github.com/juju/utils · PACKAGE
- https://github.com/juju/utils/releases/tag/v4.0.4 · WEB
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 1 Jul 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Jul 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Jul 2025)