CVE-2024-34703 Affecting botan package, versions <2.19.3+dfsg-1ubuntu2.1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.24% (47th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2410-BOTAN-8191345
  • published24 Jun 2025
  • disclosed30 Jun 2024

Introduced: 30 Jun 2024

CVE-2024-34703  (opens in a new tab)

How to fix?

Upgrade Ubuntu:24.10 botan to version 2.19.3+dfsg-1ubuntu2.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream botan package and not the botan package as distributed by Ubuntu. See How to fix? for Ubuntu:24.10 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1