CVE-2024-34702 Affecting botan package, versions <2.19.1+dfsg-2ubuntu1+esm1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
1.16% (78th 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-UBUNTU2204-BOTAN-7444337
  • published24 Jun 2025
  • disclosed8 Jul 2024

Introduced: 8 Jul 2024

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

How to fix?

Upgrade Ubuntu:22.04 botan to version 2.19.1+dfsg-2ubuntu1+esm1 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:22.04 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 3.5.0 and 2.19.5, checking name constraints in X.509 certificates is quadratic in the number of names and name constraints. An attacker who presented a certificate chain which contained a very large number of names in the SubjectAlternativeName, signed by a CA certificate which contained a large number of name constraints, could cause a denial of service. The problem has been addressed in Botan 3.5.0 and a partial backport has also been applied and is included in Botan 2.19.5.