Security mailing lists by PureSourceCode

CVE-2025-6224

MEDIUM 6.5CVSS 3.1

juju/utils leaks private key in certs

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.

Published
1 Jul 2025
Last modified
17 Jun 2026
Assigned by
security@ubuntu.com
NVD status
Analyzed
Weakness
CWE-312
Also known as
GHSA-h34r-jxqm-qgprGO-2025-3798
Sources
NVDJSONOSV GHSA-h34r-jxqm-qgprJSONOSV GO-2025-3798JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security@ubuntu.com (Secondary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD canonical juju/utils
cpe:2.3:a:canonical:juju\/utils:*:*:*:*:*:go:*:*
>= 4.0.0, < 4.0.4 4.0.4
OSV Go github.com/juju/utils/v4/cert < 4.0.4 4.0.4
OSV Go github.com/juju/utils all versions
OSV Go github.com/juju/utils/v2 all versions
OSV Go github.com/juju/utils/v3 all versions
OSV Go github.com/juju/utils/v4 < 4.0.4 4.0.4

References

History

  • 25 Nov 2026 20:58 UTC · NVD: first stored (published 1 Jul 2025)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Jul 2025)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Jul 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.