CVE-2024-34703Botan Vulnerable to Denial of Service Due to Overly Large Elliptic Curve Parameters
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.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | botan | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | botan | Fix pending | 2.19.3+dfsg-1ubuntu2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-34703 |
| Ubuntu 22.04 | botan | Fix pending | 2.19.1+dfsg-2ubuntu1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-34703 |
| Ubuntu 20.04 | botan | Fix pending | UBUNTU-CVE-2024-34703 | |
| Debian 13 | botan | Fixed | 2.19.4+dfsg-1 | DEBIAN-CVE-2024-34703 |
| Debian 12 | botan | Fixed | 2.19.3+dfsg-1+deb12u1 | DEBIAN-CVE-2024-34703 |
| Alpine Linux 3.21 | botan | Fixed | 2.19.4-r0 | ALPINE-CVE-2024-34703 |
| Alpine Linux 3.20 | botan | Fixed | 2.19.4-r0 | ALPINE-CVE-2024-34703 |
| Alpine Linux 3.19 | botan | Fixed | 2.19.5-r0 | ALPINE-CVE-2024-34703 |
| Alpine Linux 3.18 | botan | Fixed | 2.19.5-r0 | ALPINE-CVE-2024-34703 |
| Alpine Linux 3.17 | botan | Fixed | 2.19.5-r0 | ALPINE-CVE-2024-34703 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- randombit botan: affected: >= 3.0.0-alpha0, < 3.3.0, < 2.19.4
References
- https://github.com/randombit/botan/security/advisories/GHSA-w4g2-7m2h-7xj7
- https://github.com/randombit/botan/commit/08c404b23740babee1f6aa51b54e966029aadee4
- https://github.com/randombit/botan/commit/94e9154c143aa5264da6254a6a1be5bc66ee2b5a
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.