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.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.5%top 56.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.20botan2.19.4-r0ALPINE-CVE-2024-34703
Alpine:v3.21botan2.19.4-r0ALPINE-CVE-2024-34703
Debian:12botan2.19.3+dfsg-1+deb12u1DEBIAN-CVE-2024-34703
Debian:13botan2.19.4+dfsg-1DEBIAN-CVE-2024-34703

Affected products (as reported)

VendorProductVersions
randombit botan >= 3.0.0-alpha0, < 3.3.0< 2.19.4

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

References