Skip to content
Fencer Vulns
medium 5.3

CVE-2024-39312 json

Botan has an Authorization Error due to Name Constraint Decoding Bug

published 2024-07-08 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-37895

cvss
5.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 19%
public exploits
0
none known

Summary

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.

Patch / fix

  • randombit botan 2.19.5, 3.5.0
  • botan Debian 12 2.19.3+dfsg-1+deb12u1
  • botan Debian 13 2.19.5+dfsg-1

debian advisories DEBIAN-CVE-2024-39312

  • botan Ubuntu Pro 22.04 LTS 2.19.1+dfsg-2ubuntu1+esm1
  • botan Ubuntu Pro 24.04 LTS 2.19.3+dfsg-1ubuntu2+esm1

ubuntu advisories UBUNTU-CVE-2024-39312

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • Botan Package Hub 15 SP5, openSUSE Leap 15.5 2.19.5-bp155.2.3.1
  • Botan openSUSE Tumbleweed 2.19.5-1.1

opensuse advisories openSUSE-SU-2024:0201-1openSUSE-SU-2024:14188-1

  • botan Alpine 3.21, Alpine 3.20, Alpine 3.19 +2 more 2.19.5-r0
  • botan3 Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 3.5.0-r0

alpine advisories ALPINE-CVE-2024-39312

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-39312 updated cvss 5.3

Botan: Improper certificate validation

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.27% chance of exploitation in the next 30 days, higher than 19% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Affected products

  • randombit botan

Classification

Weakness
  • CWE-295 Improper Certificate Validation

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.