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

- Severity: Medium 6.5 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 5% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-07-01T10:39:34.322Z
- Modified: 2026-06-17T10:01:24.803Z
- Also known as: GHSA-h34r-jxqm-qgpr, GO-2025-3798
- Weaknesses: CWE-312
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: canonical

## Description

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.

(As written by CVE List.)

## Affected

- juju utils: from 4.0.1 up to 4.0.3
- github.com/juju/utils/v4/cert (Go): before 4.0.4
- github.com/juju/utils (Go): all versions
- github.com/juju/utils/v2 (Go): all versions
- github.com/juju/utils/v3 (Go): all versions
- github.com/juju/utils/v4 (Go): before 4.0.4
- canonical juju/utils: from 4.0.0 before 4.0.4

## Every score

- canonical: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`

## References

- <https://github.com/juju/utils/security/advisories/GHSA-h34r-jxqm-qgpr> (exploit, advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-6224> (advisory)
- <https://github.com/juju/utils/commit/766f27d7bcd10433453a9764509a864c17a46a76> (fix, web)
- <https://github.com/juju/utils> (package)
- <https://github.com/juju/utils/releases/tag/v4.0.4> (web)

## Sources

- CVE List: [CVE-2025-6224](https://www.cve.org/CVERecord?id=CVE-2025-6224), CVE Terms of Use, modified 2025-07-01
- GitHub Advisory Database: [GHSA-h34r-jxqm-qgpr](https://github.com/advisories/GHSA-h34r-jxqm-qgpr), CC-BY-4.0, modified 2025-07-28
- Go Vulnerability Database: [GO-2025-3798](https://pkg.go.dev/vuln/GO-2025-3798), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2025-6224](https://nvd.nist.gov/vuln/detail/CVE-2025-6224), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-6224 · Whole record: https://cve.day/CVE-2025-6224.json · Rebuilt by cve.day 2026-11-25T22:59:00.428Z
