# CVE-2024-34703: Botan Vulnerable to Denial of Service Due to Overly Large Elliptic Curve Parameters

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Published: 2024-06-30T20:22:32.910Z
- Modified: 2026-06-17T07:33:54.503Z
- Weaknesses: CWE-405, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- randombit botan: >= 3.0.0-alpha0, < 3.3.0; < 2.19.4; from 3.30 before 3.3.1; before 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>

## Sources

- CVE List: [CVE-2024-34703](https://www.cve.org/CVERecord?id=CVE-2024-34703), CVE Terms of Use, modified 2026-01-30
- NVD: [CVE-2024-34703](https://nvd.nist.gov/vuln/detail/CVE-2024-34703), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-34703 · Whole record: https://cve.day/CVE-2024-34703.json · Rebuilt by cve.day 2026-11-25T22:58:42.340Z
