CVEfocus › CVE database › CVE-2024-34702

CVE-2024-34702Botan has a Denial of Service Due to Excessive Name Constraints

CVSS 5.3 MediumEPSS 1.4% (higher than 72% 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. Prior to 3.5.0 and 2.19.5, checking name constraints in X.509 certificates is quadratic in the number of names and name constraints. An attacker who presented a certificate chain which contained a very large number of names in the SubjectAlternativeName, signed by a CA certificate which contained a large number of name constraints, could cause a denial of service. The problem has been addressed in Botan 3.5.0 and a partial backport has also been applied and is included in Botan 2.19.5.

CWE-405

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
3Fix pending
1Will not fix
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-34702
Ubuntu 22.04botanFix pending2.19.1+dfsg-2ubuntu1+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-34702
Ubuntu 20.04botanWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-34702
Ubuntu 18.04botanFix pendingUBUNTU-CVE-2024-34702
Debian 13botanFixed2.19.5+dfsg-1DEBIAN-CVE-2024-34702
Debian 12botanFixed2.19.3+dfsg-1+deb12u1DEBIAN-CVE-2024-34702
Alpine Linux 3.24botan3Fixed3.5.0-r0ALPINE-CVE-2024-34702
Alpine Linux 3.23botan3Fixed3.5.0-r0ALPINE-CVE-2024-34702
Alpine Linux 3.22botan3Fixed3.5.0-r0ALPINE-CVE-2024-34702
Alpine Linux 3.21botanFixed2.19.5-r0ALPINE-CVE-2024-34702
Alpine Linux 3.21botan3Fixed3.5.0-r0ALPINE-CVE-2024-34702
Alpine Linux 3.20botanFixed2.19.5-r0ALPINE-CVE-2024-34702
Alpine Linux 3.19botanFixed2.19.5-r0ALPINE-CVE-2024-34702
Alpine Linux 3.18botanFixed2.19.5-r0ALPINE-CVE-2024-34702
Alpine Linux 3.17botanFixed2.19.5-r0ALPINE-CVE-2024-34702

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.