CVE-2025-6224 Details
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.
A vulnerability exists in the Juju Utils library, specifically in version 4 and above, where the certificate generation process inadvertently includes private key information. This issue arises in the 'cert.NewLeaf' function, which creates certificates for use in TLS handshakes. If these certificates are transmitted over the network in plaintext, an attacker could intercept them and easily extract the private keys. This vulnerability affects both client and server TLS certificates generated by the library.
Users can upgrade to Juju Utils version 4.0.4 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/juju/utils/security/advisories/GHSA-h34r-jxqm-qgpr | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-312 | Cleartext Storage of Sensitive Information | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| canonical juju/utils | >= 4.0.0, < 4.0.4 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 10, 2025 | Initial Analysis | [email protected] |
| Jul 1, 2025 | New CVE Received | [email protected] |