← Vulnerability feed

Vulnerability record · CVE-2024-39312 · published 8 July 2024

CVE-2024-39312: Botan project botan improper certificate validation vulnerability

Botan Project · Botan

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.

5.3 CVSS 3.1 Medium EPSS 0.27% · top 82.2% CWE-295 · Improper certificate validation
5.3CVSS 3.1 base score
0.27%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
2References
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2024-39312 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2021-24115Botan project botan vulnerabilityIn Botan before 2.17.3, constant-time computations are not used for certain decoding and encoding operations (base32, base58, base64, and hex).EPSS 2.0%9.8CVE-2018-9127Botan project botan improper certificate validation vulnerabilityBotan 2.2.0 - 2.4.0 (fixed in 2.5.0) improperly handled wildcard certificates and could accept certain certificates as valid for hostnames when, unde…EPSS 0.93%9.8CVE-2017-2801Botan project botan out-of-bounds read vulnerabilityA programming error exists in a way Randombit Botan cryptographic library version 2.0.1 implements x500 string comparisons which could lead to certif…EPSS 1.3%9.8CVE-2016-6878Botan project botan improper input validation vulnerabilityThe Curve25519 code in botan before 1.11.31, on systems without a native 128-bit integer type, might allow attackers to have unspecified impact via v…EPSS 1.2%9.8CVE-2015-7826Botan project botan improper certificate validation vulnerabilitybotan 1.11.x before 1.11.22 improperly handles wildcard matching against hostnames, which might allow remote attackers to have unspecified impact via…EPSS 1.1%9.8CVE-2016-9132Botan project botan integer overflow vulnerabilityIn Botan 1.8.0 through 1.11.33, when decoding BER data an integer overflow could occur, which would cause an incorrect length field to be computed. S…EPSS 2.0%9.8CVE-2016-2196Botan project botan memory buffer overflow vulnerabilityHeap-based buffer overflow in the P-521 reduction function in Botan 1.11.x before 1.11.27 allows remote attackers to cause a denial of service (memor…EPSS 5.3%9.8CVE-2016-2195Botan project botan memory buffer overflow vulnerabilityInteger overflow in the PointGFp constructor in Botan before 1.10.11 and 1.11.x before 1.11.27 allows remote attackers to overwrite memory and possib…EPSS 6.7%

Source: NIST National Vulnerability Database (record CVE-2024-39312), CISA KEV, FIRST EPSS (scores of 2026-10-03). This page is refreshed as NVD updates the record.