CVE-2024-39312

CVE-2024-39312 is a medium-severity vulnerability in Botan Project Botan with a CVSS 3.x base score of 5.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-295.

Key facts

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.

Frequently asked questions

What is CVE-2024-39312?
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.
How severe is CVE-2024-39312?
CVE-2024-39312 has a CVSS 3.x base score of 5.3, rated medium severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity low, and availability none.
Is CVE-2024-39312 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (19th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-39312?
CVE-2024-39312 affects Botan Project Botan. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2024-39312?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2024-39312 have an EU (EUVD) identifier?
Yes. CVE-2024-39312 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-37895.
When was CVE-2024-39312 published?
CVE-2024-39312 was published on 2024-07-08 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Botan Project Botan

All CVEs affecting Botan Project Botan →

Other CWE-295 (Improper Certificate Validation) vulnerabilities

Browse all CWE-295 (Improper Certificate Validation) vulnerabilities →