# CVE-2025-6224: Key leakage in juju/utils certificates

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-07-01 · Modified: 2025-07-01
- Aliases: UBUNTU-CVE-2025-6224, GHSA-h34r-jxqm-qgpr, GO-2025-3798
- Record: https://cvemate.com/vulnerability/CVE-2025-6224 · JSON: https://cvemate.com/vulnerability/CVE-2025-6224/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- EPSS: 0.165%, percentile 5.876%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- canonical juju utils: ≥ 4.0.1, ≤ 4.0.3
- canonical juju\\/utils: ≥ 4.0.0, \< 4.0.4
- ubuntu golang-github-juju-utils (Ubuntu): All versions (No fix recorded)
- github.com/juju utils (Go): All versions (No fix recorded)
- github.com/juju/utils v2 (Go): All versions (No fix recorded)
- github.com/juju/utils v3 (Go): All versions (No fix recorded)
- github.com/juju/utils v4 (Go): \< 4.0.4
- github.com/juju/utils/v4 cert (Go): \< 4.0.4

## References

- <https://github.com/juju/utils/security/advisories/GHSA-h34r-jxqm-qgpr>
- <https://ubuntu.com/security/CVE-2025-6224>
- <https://www.cve.org/CVERecord?id=CVE-2025-6224>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-6224>
- <https://github.com/juju/utils/commit/766f27d7bcd10433453a9764509a864c17a46a76>
- <https://github.com/juju/utils>
- <https://github.com/juju/utils/releases/tag/v4.0.4>

---

Data as of 2026-12-05T02:36:49.503Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
