{"id":"CVE-2025-6224","published":"2025-07-01T10:39:34Z","modified":"2025-07-01T14:30:51Z","title":"Key leakage in juju/utils certificates","vendor":"Canonical","product":"Juju utils","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00158,"percentile":0.05049,"provenance":"source"},"cwes":[{"id":"CWE-312","name":"Cleartext Storage of Sensitive Information"}],"references":[{"url":"https://github.com/juju/utils/security/advisories/GHSA-h34r-jxqm-qgpr","tags":[]}],"priority":{"score":5.6,"factors":[{"name":"EPSS percentile","points":1.01},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"canonical","affectedVersions":[{"vendor":"Canonical","product":"Juju utils","versions":[">= 4.0.1, <= 4.0.3"]}],"capec":[{"id":"CAPEC-131","name":"Resource Leak Exposure"}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-07-01T14:30:33.241503Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/juju/utils/v4/cert","vulnerableRanges":["<4.0.4"],"patched":["4.0.4"],"from":["GHSA-h34r-jxqm-qgpr"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/juju/utils","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2025-3798"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/juju/utils/v2","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2025-3798"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/juju/utils/v3","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2025-3798"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/juju/utils/v4","vulnerableRanges":["<4.0.4"],"patched":["4.0.4"],"from":["GO-2025-3798"],"provenance":"source"}],"summary":{"text":"The flaw is in the certificate generation in Canonical's Juju utils, specifically the cert.NewLeaf function in juju/utils, which can include private key material in the certificate it produces. An attacker positioned to observe network traffic can capture a certificate transferred in plaintext and extract the private key from it, provided that a user interaction occurs (a certificate is sent over the network without encryption) and the attacker has network access on the path.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:29Z"},"euvd":{"id":"EUVD-2025-19609","exploited":false,"provenance":"source"}}