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

ProductAffected versionsFixed in
canonical juju\/utils4.0.0 ≤ v < 4.0.44.0.4
github.com/juju/utils/v4/certGov < 4.0.44.0.4
github.com/juju/utilsGoNo range specified—
github.com/juju/utils/v2GoNo range specified—
github.com/juju/utils/v3GoNo range specified—
github.com/juju/utils/v4Gov < 4.0.44.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.