{"schemaVersion":3,"id":"CVE-2025-6224","aliases":["UBUNTU-CVE-2025-6224","GHSA-h34r-jxqm-qgpr","GO-2025-3798"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-07-01T10:39:34.322Z","modified":"2025-07-01T14:30:51.639Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00158,"percentile":0.04492,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0.022999999999999996,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.00135},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00158,"percentile":0.04492}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00135,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00147,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00158,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00158,"percentile":0.04492}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_JUJU_UTILS","name":"Utils","source":"github","url":"https://github.com/juju/utils/security/advisories/GHSA-h34r-jxqm-qgpr","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-312","name":"Cleartext Storage of Sensitive Information","description":"The product stores sensitive information in cleartext within a resource that might be accessible to another control sphere.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/312.html"}],"affected":[{"vendor":"canonical","product":"juju utils","name":"Juju utils","label":"juju utils","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.0.1, ≤ 4.0.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.1, ≤ 4.0.3","eol":null,"hubHref":"/vendor/canonical/juju_utils"},{"vendor":"canonical","product":"juju\\/utils","name":"juju\\/utils","label":"juju\\/utils","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.0.0, < 4.0.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.0, < 4.0.4","eol":null,"hubHref":"/vendor/canonical/jujuutils"},{"vendor":"ubuntu","product":"golang-github-juju-utils","name":"golang-github-juju-utils","label":"golang-github-juju-utils","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/golang-github-juju-utils","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/juju","product":"utils","name":"github.com/juju/utils","label":"utils","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/juju/utils","purlType":"golang","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/juju/utils","product":"v2","name":"github.com/juju/utils/v2","label":"v2","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/juju/utils/v2","purlType":"golang","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/juju/utils","product":"v3","name":"github.com/juju/utils/v3","label":"v3","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/juju/utils/v3","purlType":"golang","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/juju/utils","product":"v4","name":"github.com/juju/utils/v4","label":"v4","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/juju/utils/v4","purlType":"golang","versions":[{"text":"< 4.0.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.0.4","eol":null,"hubHref":null},{"vendor":"github.com/juju/utils/v4","product":"cert","name":"github.com/juju/utils/v4/cert","label":"cert","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/juju/utils/v4/cert","purlType":"golang","versions":[{"text":"< 4.0.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.0.4","eol":null,"hubHref":null}],"affectedCount":8,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/juju/utils/security/advisories/GHSA-h34r-jxqm-qgpr","label":"github.com/juju/utils/security/advisories/GHSA-h34r-jxqm-qgpr","hostname":"github.com","tags":["WEB","Advisory","Exploit","Vendor Advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-6224","label":"ubuntu.com/security/CVE-2025-6224","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-6224","label":"www.cve.org/CVERecord?id=CVE-2025-6224","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6224","label":"nvd.nist.gov/vuln/detail/CVE-2025-6224","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/juju/utils/commit/766f27d7bcd10433453a9764509a864c17a46a76","label":"github.com/juju/utils/commit/766f27d7bcd10433453a9764509a864c17a46a76","hostname":"github.com","tags":["WEB","FIX"]},{"url":"https://github.com/juju/utils","label":"github.com/juju/utils","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/juju/utils/releases/tag/v4.0.4","label":"github.com/juju/utils/releases/tag/v4.0.4","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2025:15405-1"],"duplicates":[],"related":["OPENSUSE-SU-2025:15405-1"]},"timeline":[{"kind":"published","date":"2025-07-01T10:39:34.322Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-07-01T14:30:51.639Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":36,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T07:43:31.174Z","stale":false,"partial":false}}