Vulnerability · Published Jul 8, 2024 · Assigned by GitHub_M
CVE-2024-39312Botan has an Authorization Error due to Name Constraint Decoding Bug
Medium 5.3
In plain English
A medium-severity improper certificate validation in botan from randombit. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 20% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | botan | 2.19.5-r0 | ALPINE-CVE-2024-39312 |
| Alpine:v3.21 | botan | 2.19.5-r0 | ALPINE-CVE-2024-39312 |
| Alpine:v3.21 | botan3 | 3.5.0-r0 | ALPINE-CVE-2024-39312 |
| Alpine:v3.22 | botan3 | 3.5.0-r0 | ALPINE-CVE-2024-39312 |
| Alpine:v3.23 | botan3 | 3.5.0-r0 | ALPINE-CVE-2024-39312 |
| Alpine:v3.24 | botan3 | 3.5.0-r0 | ALPINE-CVE-2024-39312 |
| Debian:12 | botan | 2.19.3+dfsg-1+deb12u1 | DEBIAN-CVE-2024-39312 |
| Debian:13 | botan | 2.19.5+dfsg-1 | DEBIAN-CVE-2024-39312 |
Affected products (as reported)
Weakness: CWE-295 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
References
- https://github.com/randombit/botan/security/advisories/GHSA-jp24-56jm-gg86 x_refsource_CONFIRM