CVE-2024-39312

Botan has an Authorization Error due to Name Constraint Decoding Bug

MEDIUM
5.3
CVSS Score
Published: July 8, 2024 at 04:30 PM UTC
Updated: June 17, 2026 at 07:41 AM UTC
2 products affected across 2 vendorsBotanBotan

Using botan by randombit?

Get instant alerts when new vulnerabilities affect botan - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 2.19.53.0.0 ≤ v < 3.5.0
Affected range stops below 2.19.5, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.5.0, so it looks safe — our inference, not a vendor statement
v < 2.19.5v < 3.5.03.0.0 ≤ v < 3.5.03.0.0
Affected range stops below 2.19.5, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.5.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.3MEDIUMGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-295

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card