CVE-2024-45341 Usage of IPv6 zone IDs can bypass URI name constraints in crypto/x509
Attackers can bypass URI name constraints in private PKIs using IPv6 zone IDs, affecting Go applications relying on certificate validation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-45341?
CVE-2024-45341 is a medium-severity vulnerability in Go standard library crypto/x509, published on 28 Jan 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A certificate with a URI which has a IPv6 address with a zone ID may incorrectly satisfy a URI name constraint that applies to the certificate chain. Certificates containing URIs are not permitted in the web PKI, so this only affects users of private PKIs which make use of URIs.
Which versions are affected by CVE-2024-45341?
2 open source packages ship an affected version, including golang and stdlib.
| Package | Affected | Fixed in |
|---|---|---|
golang Bitnami | All versions | 1.22.11, 1.23.5, 1.24.0 |
stdlib Go | All versions | 1.22.11, 1.23.5, 1.24.0-rc.2 |
How do I fix CVE-2024-45341?
Upgrade golang to a fixed version for your release line: 1.22.11, 1.23.5 or 1.24.0.
Is CVE-2024-45341 being exploited?
There is no known exploitation of CVE-2024-45341 in the wild and no public exploit code.
Sources
Also known as AZL-56031, AZL-56043, AZL-56046, AZL-78954, AZL-98598, BELL-CVE-2024-45341 and 27 more.