{"cve":"CVE-2025-6224","nvd":{"published":"2025-07-01T11:15:21.770","modified":"2026-06-17T10:01:24.803","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5},"cwes":["CWE-312"],"references":["https://github.com/juju/utils/security/advisories/GHSA-h34r-jxqm-qgpr"],"products":["canonical:juju\\/utils"],"source":"nvd","synced_at":"2026-10-19T22:03:23.287444849+00:00"},"epss":{"cve":"CVE-2025-6224","score":0.00158,"percentile":0.04906,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-h34r-jxqm-qgpr","url":"https://osv.dev/vulnerability/GHSA-h34r-jxqm-qgpr","summary":"juju/utils leaks private key in certs","modified":"2025-07-28T20:42:09.054774Z","packages":[{"ecosystem":"Go","name":"github.com/juju/utils/v4/cert","purl":"pkg:golang/github.com/juju/utils/v4/cert","ranges":["<4.0.4"],"fixed":["4.0.4"]}]},{"id":"GO-2025-3798","url":"https://osv.dev/vulnerability/GO-2025-3798","summary":"Leaks private key in certs in github.com/juju/utils","modified":"2026-03-03T04:57:21.747333Z","packages":[{"ecosystem":"Go","name":"github.com/juju/utils","purl":"pkg:golang/github.com/juju/utils","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/juju/utils/v2","purl":"pkg:golang/github.com/juju/utils/v2","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/juju/utils/v3","purl":"pkg:golang/github.com/juju/utils/v3","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/juju/utils/v4","purl":"pkg:golang/github.com/juju/utils/v4","ranges":["<4.0.4"],"fixed":["4.0.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}