Botan has a Denial of Service Due to Excessive Name Constraints
CVE-2024-34702Published 8 Jul 2024, 16:22 UTC
Real-world risk
2.6/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
5.3
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from 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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| botanNiche | < 2.19.5; >= 3.0.0, < 3.5.0 | 2.19.5, 3.5.0 |
What to do
Update to a fixed version: 2.19.5, 3.5.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.8% chance of exploitation in 30 days (percentile 59), as of 2026-12-06.
The arithmetic
- Prerequisites multiplied together1.000
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 1 × threat 0.852.550
- Rounded to one decimal between 0.1 and 102.6
Exploitation and evidence timeline
- 8 Jul 2024 Published
- 3 Dec 2026 Risk 2.6 (cvss fallback)
Weakness
CWE-405
References
- https://github.com/randombit/botan/security/advisories/GHSA-5gg9-hqpr-r58jvendor-advisory, x-transferred
- https://github.com/randombit/botan/pull/4034misc, x-transferred
- https://github.com/randombit/botan/pull/4045misc, x-transferred
- https://github.com/randombit/botan/pull/4047misc, x-transferred
- https://github.com/randombit/botan/pull/4052misc, x-transferred
- https://github.com/randombit/botan/pull/4186misc, x-transferred
- https://github.com/randombit/botan/pull/4187misc, x-transferred
- https://github.com/randombit/botan/commit/21dccc8fef18c165ba3301d850ac61521f85637emisc, x-transferred
- https://github.com/randombit/botan/commit/39535f13c322f56aa3da2f44b2b6abb8619a82acmisc, x-transferred
- https://github.com/randombit/botan/commit/477822a2d10f02d8ba46c9d8a5132f25843f5cc1misc, x-transferred
- https://github.com/randombit/botan/commit/7606d70d3a2ac7114476ec2651ca0243c4536fdfmisc, x-transferred
- https://github.com/randombit/botan/commit/c3264821b9f6286ee4e6e3e06826f6b7177e6d41misc, x-transferred
- https://github.com/randombit/botan/commit/ff704b12e6fa351aaedd07bffdc91722e84586b8misc, x-transferred
- CVE-2024-34702 on CVE.org