Skip to content
OpenAdvisories
High · 7.5 CVE-2024-34703 EUVD-2024-34998

Botan Vulnerable to Denial of Service Due to Overly Large Elliptic Curve Parameters

Published Jun 30, 2024 · Updated Jan 30, 2026 · 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.

Affected products

VendorProductAffectedFixed
randombit botan >= 3.0.0-alpha0, < 3.3.0, < 2.19.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 13 botan 2.19.4+dfsg-1 —
Debian 12 botan 2.19.3+dfsg-1+deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS botan No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS botan 2.19.3+dfsg-1ubuntu2+esm1 USN-7586-1
Ubuntu Pro 22.04 LTS botan 2.19.1+dfsg-2ubuntu1+esm1 USN-7586-1
ReleasePackageFixed inAdvisory
SLES 15 SP7 MozillaThunderbird 153.2.0-150400.13.3.1 SUSE-SU-2026:4268-1
SLES 15 SP6 MozillaThunderbird 115.12.2-150200.8.168.1 SUSE-SU-2024:2415-1
SLES 15 SP5 MozillaThunderbird 115.12.2-150200.8.168.1 SUSE-SU-2024:2415-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP5 Botan 2.19.5-bp155.2.3.1 openSUSE-SU-2024:0201-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed Botan 2.19.5-1.1 openSUSE-SU-2024:14188-1
openSUSE Tumbleweed MozillaThunderbird 115.12.2-1.1 openSUSE-SU-2024:14095-1
openSUSE Leap 15.6 MozillaThunderbird 115.12.2-150200.8.168.1 SUSE-SU-2024:2415-1
openSUSE Leap 15.5 Botan 2.19.5-bp155.2.3.1 openSUSE-SU-2024:0201-1
openSUSE Leap 15.5 MozillaThunderbird 115.12.2-150200.8.168.1 SUSE-SU-2024:2415-1
ReleasePackageFixed inAdvisory
Alpine v3.21 botan 2.19.4-r0 —
Alpine v3.20 botan 2.19.4-r0 —
Alpine v3.19 botan 2.19.5-r0 —
Alpine v3.18 botan 2.19.5-r0 —
Alpine v3.17 botan 2.19.5-r0 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 botan2 No fix yet —
Azure Linux 2 (CBL-Mariner) botan2 No fix yet —

Advisories 6

References