VDB

CVE-2024-39312

CVE-2024-39312 PUBLISHED CVSS 5.3 MEDIUM

Botan has an Authorization Error due to Name Constraint Decoding Bug

Reported by github_m · Published July 8, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
botanrandombit3.5.0, 2.19.5

Risk scores

CVSS 3.1
5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Affected products

VendorProductVersions
randombitbotan< 2.19.5, >= 3.0.0, < 3.5.0
randombitbotan0, 3.0.0
randombitbotan0, 3.0.0
alpinebotan0
alpinebotan30

Timeline

  • Jul 8, 2024 CVE Published
  • Jul 8, 2024 PoC Published (2 in total, the first dated here)
  • Jul 9, 2024 EPSS Score (30 in total, the first dated here)
  • Aug 2, 2024 CVE Updated
  • Oct 4, 2024 Coalition ESS Score (9 in total, the first dated here)
  • Jan 8, 2026 Security Advisory (2 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-39312
vulnetix vdb fixes CVE-2024-39312

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-39312/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›