CVEfocus › CVE database › CVE-2024-39312

CVE-2024-39312Botan has an Authorization Error due to Name Constraint Decoding Bug

CVSS 5.3 MediumEPSS 0.4% (higher than 31% of CVEs)Published 2024-07-08Updated 2024-08-02Assigner: GitHub_M

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.

CWE-295

What to do

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

11Fixed
4Fix pending
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10botanNot affected
vulnerable_code_not_present
Ubuntu 24.04botanFix pending2.19.3+dfsg-1ubuntu2+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-39312
Ubuntu 22.04botanFix pending2.19.1+dfsg-2ubuntu1+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-39312
Ubuntu 20.04botanFix pendingUBUNTU-CVE-2024-39312
Ubuntu 18.04botanFix pendingUBUNTU-CVE-2024-39312
Debian 13botanFixed2.19.5+dfsg-1DEBIAN-CVE-2024-39312
Debian 12botanFixed2.19.3+dfsg-1+deb12u1DEBIAN-CVE-2024-39312
Alpine Linux 3.24botan3Fixed3.5.0-r0ALPINE-CVE-2024-39312
Alpine Linux 3.23botan3Fixed3.5.0-r0ALPINE-CVE-2024-39312
Alpine Linux 3.22botan3Fixed3.5.0-r0ALPINE-CVE-2024-39312
Alpine Linux 3.21botanFixed2.19.5-r0ALPINE-CVE-2024-39312
Alpine Linux 3.21botan3Fixed3.5.0-r0ALPINE-CVE-2024-39312
Alpine Linux 3.20botanFixed2.19.5-r0ALPINE-CVE-2024-39312
Alpine Linux 3.19botanFixed2.19.5-r0ALPINE-CVE-2024-39312
Alpine Linux 3.18botanFixed2.19.5-r0ALPINE-CVE-2024-39312
Alpine Linux 3.17botanFixed2.19.5-r0ALPINE-CVE-2024-39312

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.