CVE-2024-39312 Botan has an Authorization Error due to Name Constraint Decoding Bug
Attackers can bypass X.509 name constraint checks in Botan, allowing certificates that should be rejected to be accepted.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-39312?
CVE-2024-39312 is a medium-severity vulnerability in randombit botan, published on 8 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Botan is a C++ cryptography library. X.509 certificates can identify elliptic curves using either an object identifier or using explicit encoding of the parameters. A bug in the parsing of name constraint extensions in X.509 certificates meant that if the extension included both permitted subtrees and excluded subtrees, only the permitted subtree would be checked. If a certificate included a name which was permitted by the permitted subtree but also excluded by excluded subtree, it would be accepted. Fixed in versions 3.5.0 and 2.19.5.
Weakness: CWE-295
Which versions are affected by CVE-2024-39312?
It affects 1 product.
Products include Botan Project Botan.
How do I fix CVE-2024-39312?
Upgrade to a fixed version.
Is CVE-2024-39312 being exploited?
There is no known exploitation of CVE-2024-39312 in the wild and no public exploit code.
Other vulnerabilities in randombit botan
Sources
Also known as ALPINE-CVE-2024-39312, AZL-43825, AZL-44286, DEBIAN-CVE-2024-39312, GHSA-jp24-56jm-gg86, UBUNTU-CVE-2024-39312.