CVE-2024-39312: botan_project botan Improper Certificate Validation
Vulnerability summary
CVE-2024-39312 is a medium (CVSS 5.3) Improper Certificate Validation vulnerability in botan_project botan. EPSS estimates a 0.27% chance of exploitation in the next 30 days, higher than 18.4% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 3 · Related 3Timeline
- 08-07-2024PublishedVulnerability first disclosed.
- 02-08-2024Last modifiedVulnerability information updated.
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 metrics
5 scores · 5 sources · 1 version- OSV · AlpineEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS trend
Probability
0.27%
Chance of exploitation in the next 30 days
Percentile
18%
Versus all other CVEs
30-day change
0.00 pp
From 0.27% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Alpine2 products
- botan≥ 3.0.0, < 2.19.5-r0
- botan3< 3.5.0-r0
Botan_project1 product
- botan< 2.19.5 | ≥ 3.0.0, < 3.5.0
Debian1 product
- botan< 2.19.3+dfsg-1+deb12u1 | < 2.19.5+dfsg-1
Randombit1 product
- botan< 2.19.5 | ≥ 3.0.0, < 3.5.0
Ubuntu1 product
- botanAll versions (No fix recorded) | < 2.19.1+dfsg-2ubuntu1+esm1 | < 2.19.3+dfsg-1ubuntu2+esm1
5 vendors · 6 products
References
6 links- github.com/randombit/botan/security/advisories/GHSA-jp24-56jm-gg86X Refsource CONFIRMREPORTThird Party Advisory