CVE-2024-39312
Botan has an Authorization Error due to Name Constraint Decoding Bug
Reported by github_m · Published July 8, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| botan | randombit | 3.5.0, 2.19.5 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| randombit | botan | < 2.19.5, >= 3.0.0, < 3.5.0 |
| randombit | botan | 0, 3.0.0 |
| randombit | botan | 0, 3.0.0 |
| alpine | botan | 0 |
| alpine | botan3 | 0 |
Timeline
- Jul 8, 2024 CVE Published
- Jul 8, 2024 PoC Published (2 in total, the first dated here)
- Jul 9, 2024 EPSS Score (30 in total, the first dated here)
- Aug 2, 2024 CVE Updated
- Oct 4, 2024 Coalition ESS Score (9 in total, the first dated here)
- Jan 8, 2026 Security Advisory (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-39312
vulnetix vdb fixes CVE-2024-39312
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-39312/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/randombit/botan/security/advisories/GHSA-jp24-56jm-gg86 x_refsource_CONFIRM