Skip to content
Fencer Vulns
medium 5.3

CVE-2024-34702 json

Botan has a Denial of Service Due to Excessive Name Constraints

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

cvss
5.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.8%
EPSS 0.8% chance of exploitation in 30 days, percentile 58%
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. 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.

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-34702

  • 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-34702

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-34702

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-34702 updated cvss 5.3

botan: Assymetric resource consumption

  • 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.84% chance of exploitation in the next 30 days, higher than 58% 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:N/A:L

Affected products

  • randombit botan

Classification

Weakness
  • CWE-405 Asymmetric Resource Consumption (Amplification)

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.