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
- github.com/randombit/botan@21dccc8 commit
- github.com/randombit/botan@39535f1 commit
- github.com/randombit/botan@477822a commit
- github.com/randombit/botan@7606d70 commit
- github.com/randombit/botan@c326482 commit
- github.com/randombit/botan@ff704b1 commit
- github.com/randombit/botan#4034 pull request
- github.com/randombit/botan#4045 pull request
- github.com/randombit/botan#4047 pull request
- github.com/randombit/botan#4052 pull request
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 productsnot 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
- github.com /randombit/botan/pull/4034
- github.com /randombit/botan/pull/4045
- github.com /randombit/botan/pull/4047
- github.com /randombit/botan/pull/4052
- github.com /randombit/botan/pull/4186
- github.com /randombit/botan/pull/4187
- github.com /randombit/botan/commit/21dccc8fef18c165ba3301d850ac61521f85637e
- github.com /randombit/botan/commit/39535f13c322f56aa3da2f44b2b6abb8619a82ac
- github.com /randombit/botan/commit/477822a2d10f02d8ba46c9d8a5132f25843f5cc1
- github.com /randombit/botan/commit/7606d70d3a2ac7114476ec2651ca0243c4536fdf
- github.com /randombit/botan/commit/c3264821b9f6286ee4e6e3e06826f6b7177e6d41
- github.com /randombit/botan/commit/ff704b12e6fa351aaedd07bffdc91722e84586b8
- github.com /randombit/botan/security/advisories/GHSA-5gg9-hqpr-r58j
Sources
- CVE List CVE-2024-34702
- NVD CVE-2024-34702
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.