{"answers":{"affected":"6 open source packages ship an affected version, including github.com/juju/utils/v4/cert, github.com/juju/utils and github.com/juju/utils/v2. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-6224 exists.","fix":"Upgrade github.com/juju/utils/v4/cert to 4.0.4 or later.","what":"CVE-2025-6224 is a medium-severity vulnerability in Canonical Juju utils, published on 1 Jul 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-6224 and fix it if it is affected.\n\nWhat it is: CVE-2025-6224 is a medium-severity vulnerability in Canonical Juju utils, published on 1 Jul 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-6224 exists.\n\nAffected packages and fixed versions:\n- github.com/juju/utils/v4/cert (Go): affected all versions; fixed in 4.0.4\n- github.com/juju/utils/v4/cert (Go): affected all versions; fixed in 4.0.4\n- github.com/juju/utils (Go): affected all versions; no fix listed\n- github.com/juju/utils/v2 (Go): affected all versions; no fix listed\n- github.com/juju/utils/v3 (Go): affected all versions; no fix listed\n- github.com/juju/utils/v4 (Go): affected all versions; fixed in 4.0.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-6224/ (Markdown: https://insights.sbomify.com/CVE-2025-6224/index.md)","id":"CVE-2025-6224","markdown":"https://insights.sbomify.com/CVE-2025-6224/index.md","name":"CVE-2025-6224","record":{"aliases":["GHSA-h34r-jxqm-qgpr","GO-2025-3798","UBUNTU-CVE-2025-6224"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Juju utils library","requires_auth":"none","summary":"Attackers can extract private keys from certificates generated by the juju/utils library if transmitted over plaintext networks, compromising security.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"canonical","cpe":[{"product":"juju\\/utils","vendor":"canonical"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-312","name":"Cleartext Storage of Sensitive Information"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Key leakage in juju/utils certificates","id":"CVE-2025-6224","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2025"},"n_packages":6,"n_references":1,"next":{"headline":"Command injection in Kieback\u0026Peter Neutrino-GLT","id":"CVE-2025-6225"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/juju/utils","purl":"pkg:golang/github.com/juju/utils","source":"GO-2025-3798"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/juju/utils/v2","purl":"pkg:golang/github.com/juju/utils/v2","source":"GO-2025-3798"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/juju/utils/v3","purl":"pkg:golang/github.com/juju/utils/v3","source":"GO-2025-3798"},{"ecosystem":"Go","fixed":["4.0.4"],"introduced":["0"],"last_affected":[],"package":"github.com/juju/utils/v4","purl":"pkg:golang/github.com/juju/utils/v4","source":"GO-2025-3798"},{"ecosystem":"Go","fixed":["4.0.4"],"introduced":["0"],"last_affected":[],"package":"github.com/juju/utils/v4/cert","purl":null,"source":"GHSA-h34r-jxqm-qgpr"},{"ecosystem":"Go","fixed":["4.0.4"],"introduced":["0"],"last_affected":[],"package":"github.com/juju/utils/v4/cert","purl":"pkg:golang/github.com/juju/utils/v4/cert","source":"GHSA-h34r-jxqm-qgpr"}],"prev":{"headline":"File upload in WooCommerce Refund And Exchange with RMA - Warranty Management, Refund Policy, Manage User Wallet","id":"CVE-2025-6222"},"products":["Juju utils"],"published":"2025-07-01","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-07-01","vendors":["Canonical"]},"summary":"Attackers can extract private keys from certificates generated by the juju/utils library if transmitted over plaintext networks, compromising security.","url":"https://insights.sbomify.com/CVE-2025-6224/"}