CVE-2024-34702

Botan has a Denial of Service Due to Excessive Name Constraints

State
Published
Severity
5.3 Medium
Published
Jul 8, 2024
Updated
Aug 2, 2024
Reserved
May 7, 2024

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.15.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LGitHub_M

Weaknesses

  • CWE-405 Asymmetric Resource Consumption (Amplification)

Affected Products

ProductVersions
botanrandombit
  • < 2.19.5Affected
  • >= 3.0.0, < 3.5.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.