Botan Vulnerable to Denial of Service Due to Overly Large Elliptic Curve Parameters
CVE-2024-34703Published 30 Jun 2024, 20:22 UTC
Real-world risk
3.4/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.5
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 versions 3.3.0 and 2.19.4, an attacker could present an ECDSA X.509 certificate using explicit encoding where the parameters are very large. The proof of concept used a 16Kbit prime for this purpose. When parsing, the parameter is checked to be prime, causing excessive computation. This was patched in 2.19.4 and 3.3.0 to allow the prime parameter of the elliptic curve to be at most 521 bits. No known workarounds are available. Note that support for explicit encoding of elliptic curve parameters is deprecated in Botan.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| botanNiche | >= 3.0.0-alpha0, < 3.3.0; < 2.19.4; >= 3.30, < 3.3.1 | 3.3.0, 2.19.4, 3.3.1 |
What to do
Update to a fixed version: 3.3.0, 2.19.4, 3.3.1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Denial of serviceCrash or resource exhaustion only | From the CVSS vector | 0.40 |
| 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.5% chance of exploitation in 30 days (percentile 45), as of 2026-12-06.
The arithmetic
- Prerequisites multiplied together1.000
- Threat T1: Nothing known0.850
- 10 × impact 0.4 × prerequisites 1 × threat 0.853.400
- Rounded to one decimal between 0.1 and 103.4
Exploitation and evidence timeline
- 30 Jun 2024 Published
- 3 Dec 2026 Risk 3.4 (cvss fallback)
Weakness
CWE-405, CWE-770
References
- https://github.com/randombit/botan/security/advisories/GHSA-w4g2-7m2h-7xj7vendor-advisory, x-transferred
- https://github.com/randombit/botan/commit/08c404b23740babee1f6aa51b54e966029aadee4misc, x-transferred
- https://github.com/randombit/botan/commit/94e9154c143aa5264da6254a6a1be5bc66ee2b5amisc, x-transferred
- CVE-2024-34703 on CVE.org