Live threats

All CVEs / Canonical

CVE-2025-6224Canonical Juju/utils

Medium 6.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Juju/utils.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
canonicaljuju/utils≥ 4.0.0 < 4.0.4

Official sources

References

Links published by the sources. Open them with care.