CVE-2024-34703 Botan Vulnerable to Denial of Service Due to Overly Large Elliptic Curve Parameters
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
13 packages: 12 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/botan(Ubuntu 20.04) | = 2.9.0-2; = 2.9.0-2build1; = 2.12.1-2; = 2.12.1-2build1 +1 more | No fix listed | No fix yet |
| alpine/botan(Alpine v3.17) | < 2.19.5-r0 | 2.19.5-r0 | Fixed |
| alpine/botan(Alpine v3.18) | < 2.19.5-r0 | 2.19.5-r0 | Fixed |
| alpine/botan(Alpine v3.19) | < 2.19.5-r0 | 2.19.5-r0 | Fixed |
| alpine/botan(Alpine v3.20) | < 2.19.4-r0 | 2.19.4-r0 | Fixed |
| alpine/botan(Alpine v3.21) | < 2.19.4-r0 | 2.19.4-r0 | Fixed |
| debian/botan(Debian 12) | < 2.19.3+dfsg-1+deb12u1; = 2.19.3+dfsg-1 | 2.19.3+dfsg-1+deb12u1 | Fixed |
| debian/botan(Debian 13) | < 2.19.4+dfsg-1 | 2.19.4+dfsg-1 | Fixed |
| randombit botan | < 2.19.4; = < 2.19.4; = >= 3.0.0-alpha0, < 3.3.0; >= 3.30, < 3.3.1 | 2.19.4, 3.3.1 | Fixed |
| ubuntu/botan(Ubuntu 22.04) | < 2.19.1+dfsg-2ubuntu1+esm1 | 2.19.1+dfsg-2ubuntu1+esm1 | Fixed |
| ubuntu/botan(Ubuntu 24.04) | < 2.19.3+dfsg-1ubuntu2+esm1 | 2.19.3+dfsg-1ubuntu2+esm1 | Fixed |
| ubuntu/botan(Ubuntu Pro 22.04) | < 2.19.1+dfsg-2ubuntu1+esm1; = 2.17.3+dfsg-3; = 2.19.1+dfsg-2ubuntu1 | 2.19.1+dfsg-2ubuntu1+esm1 | Fixed |
| ubuntu/botan(Ubuntu Pro 24.04) | < 2.19.3+dfsg-1ubuntu2+esm1; = 2.19.3+dfsg-1ubuntu1; = 2.19.3+dfsg-1ubuntu2 | 2.19.3+dfsg-1ubuntu2+esm1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/botan(Debian:12) | < 2.19.3+dfsg-1+deb12u1 | 2.19.3+dfsg-1+deb12u1 |
| debian/botan(Debian:12) | = 2.19.3+dfsg-1 | No fix listed |
| debian/botan(Debian:13) | < 2.19.4+dfsg-1 | 2.19.4+dfsg-1 |
| ubuntu/botan(Ubuntu:22.04) | < 2.19.1+dfsg-2ubuntu1+esm1 | 2.19.1+dfsg-2ubuntu1+esm1 |
| randombit botan | = >= 3.0.0-alpha0, < 3.3.0 | No fix listed |
| randombit botan | = < 2.19.4 | No fix listed |
| randombit botan | >= 3.30, < 3.3.1 | 3.3.1 |
| randombit botan | < 2.19.4 | 2.19.4 |
| alpine/botan(Alpine:v3.17) | < 2.19.5-r0 | 2.19.5-r0 |
| alpine/botan(Alpine:v3.18) | < 2.19.5-r0 | 2.19.5-r0 |
| alpine/botan(Alpine:v3.19) | < 2.19.5-r0 | 2.19.5-r0 |
| alpine/botan(Alpine:v3.20) | < 2.19.4-r0 | 2.19.4-r0 |
| alpine/botan(Alpine:v3.21) | < 2.19.4-r0 | 2.19.4-r0 |
| ubuntu/botan(Ubuntu:24.04) | < 2.19.3+dfsg-1ubuntu2+esm1 | 2.19.3+dfsg-1ubuntu2+esm1 |
| ubuntu/botan(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/botan(Ubuntu:20.04) | = 2.9.0-2 | No fix listed |
| ubuntu/botan(Ubuntu:20.04) | = 2.9.0-2build1 | No fix listed |
| ubuntu/botan(Ubuntu:20.04) | = 2.12.1-2 | No fix listed |
| ubuntu/botan(Ubuntu:20.04) | = 2.12.1-2build1 | No fix listed |
| ubuntu/botan(Ubuntu:Pro:22.04) | < 2.19.1+dfsg-2ubuntu1+esm1 | 2.19.1+dfsg-2ubuntu1+esm1 |
| ubuntu/botan(Ubuntu:Pro:22.04) | = 2.17.3+dfsg-3 | No fix listed |
| ubuntu/botan(Ubuntu:Pro:22.04) | = 2.19.1+dfsg-2ubuntu1 | No fix listed |
| ubuntu/botan(Ubuntu:Pro:24.04) | < 2.19.3+dfsg-1ubuntu2+esm1 | 2.19.3+dfsg-1ubuntu2+esm1 |
| ubuntu/botan(Ubuntu:Pro:24.04) | = 2.19.3+dfsg-1ubuntu1 | No fix listed |
| ubuntu/botan(Ubuntu:Pro:24.04) | = 2.19.3+dfsg-1ubuntu2 | No fix listed |
References
- Debian Security Tracker CVE-2024-34703 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-7586-1 vendor-advisory
- www.cve.org issue-tracking
- https://github.com/randombit/botan/security/advisories/GHSA-w4g2-7m2h-7xj7 issue-tracking
- https://github.com/randombit/botan/commit/08c404b23740babee1f6aa51b54e966029aadee4 issue-tracking
- https://github.com/randombit/botan/commit/94e9154c143aa5264da6254a6a1be5bc66ee2b5a issue-tracking
- security.alpinelinux.org vendor-advisory