Improper Certificate Validation Affecting botan package, versions <2.19.3+dfsg-1ubuntu2.1


Severity

Recommended
0.0
medium
0
10

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.1% (30th 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-8190975
  • published24 Jun 2025
  • disclosed8 Jul 2024

Introduced: 8 Jul 2024

CVE-2024-39312  (opens in a new tab)
CWE-295  (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. A bug in the parsing of name constraint extensions in X.509 certificates meant that if the extension included both permitted subtrees and excluded subtrees, only the permitted subtree would be checked. If a certificate included a name which was permitted by the permitted subtree but also excluded by excluded subtree, it would be accepted. Fixed in versions 3.5.0 and 2.19.5.

CVSS Base Scores

version 3.1