CVE-2025-6224Canonical Juju/utils
Medium 6.5 No auth needed
Follow: this CVE · Canonical · Canonical Juju/utils We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- —
- Auth required
- No
- Published
- Jul 1, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-312
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Juju/utils.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/juju/utils |
all |
no fixed version | — |
| Go | github.com/juju/utils/v2 |
all |
no fixed version | — |
| Go | github.com/juju/utils/v3 |
all |
no fixed version | — |
| Go | github.com/juju/utils/v4 |
< 4.0.4 |
4.0.4 |
go get github.com/juju/utils/v4@v4.0.4 |
| Go | github.com/juju/utils/v4/cert |
< 4.0.4 |
4.0.4 |
go get github.com/juju/utils/v4/cert@v4.0.4 |
Per OSV / GitHub Advisories (GO-2025-3798, GHSA-h34r-jxqm-qgpr). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| canonical | juju/utils | ≥ 4.0.0 < 4.0.4 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Vendor Advisory