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.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.3%top 80.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.20botan2.19.5-r0ALPINE-CVE-2024-39312
Alpine:v3.21botan2.19.5-r0ALPINE-CVE-2024-39312
Alpine:v3.21botan33.5.0-r0ALPINE-CVE-2024-39312
Alpine:v3.22botan33.5.0-r0ALPINE-CVE-2024-39312
Alpine:v3.23botan33.5.0-r0ALPINE-CVE-2024-39312
Alpine:v3.24botan33.5.0-r0ALPINE-CVE-2024-39312
Debian:12botan2.19.3+dfsg-1+deb12u1DEBIAN-CVE-2024-39312
Debian:13botan2.19.5+dfsg-1DEBIAN-CVE-2024-39312

Affected products (as reported)

VendorProductVersions
randombit botan < 2.19.5>= 3.0.0, < 3.5.0

Weakness: CWE-295 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

References