CVE-2025-6224
Medium
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.
SeverityMedium
CVSS6.5
Exploit probability—
ProductCanonical Juju\/utils
PublishedJul 1, 2025
First seenJul 1, 2025
Weakness typeCWE-312CWE-312
How to fix
Update
- canonical juju\/utils4.0.4 or later
- github.com/juju/utils/v4/cert4.0.4 or later
- github.com/juju/utils/v44.0.4 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| canonical juju\/utils | 4.0.0 ≤ v < 4.0.4 | 4.0.4 |
| github.com/juju/utils/v4/certGo | v < 4.0.4 | 4.0.4 |
| github.com/juju/utilsGo | No range specified | — |
| github.com/juju/utils/v2Go | No range specified | — |
| github.com/juju/utils/v3Go | No range specified | — |
| github.com/juju/utils/v4Go | v < 4.0.4 | 4.0.4 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.