Vulnerability · Published Jun 30, 2024 · Assigned by GitHub_M
CVE-2024-34703Botan Vulnerable to Denial of Service Due to Overly Large Elliptic Curve Parameters
High 7.5
In plain English
A high-severity resource allocation without limits in botan from randombit. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 43% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | botan | 2.19.4-r0 | ALPINE-CVE-2024-34703 |
| Alpine:v3.21 | botan | 2.19.4-r0 | ALPINE-CVE-2024-34703 |
| Debian:12 | botan | 2.19.3+dfsg-1+deb12u1 | DEBIAN-CVE-2024-34703 |
| Debian:13 | botan | 2.19.4+dfsg-1 | DEBIAN-CVE-2024-34703 |
Affected products (as reported)
Weakness: CWE-405, CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H