Botan: directoryName nameConstraint bypass via multi-AVA RDN flattening in matches_dn
CVE-2026-48057Published 6 Nov 2026, 21:24 UTC
Real-world risk
0.1/ 10Low
Routine
If the vulnerable configuration applies to you: 0.2
PreliminaryFrom the CVSS vector only · confidence low
CVSS
2.1
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
Botan is a C++ cryptography library. Prior to 3.13.0, Botan's X.509 Distinguished Name decoder flattens the Attribute-Value Assertions in each Relative Distinguished Name and loses multi-value RDN grouping before DN name-constraint enforcement. An attacker controlling a name-constrained intermediate CA can issue a certificate with a multi-value RDN whose first Common Name matches the permitted constraint and whose second Common Name is attacker-chosen, causing the constraint check to accept the flattened first value. If the certificate contains no subjectAlternativeName extension, the second Common Name can then be accepted as a hostname; Botan does not fall back to Common Name hostname matching when any subjectAlternativeName is present. The exposure is limited to deployments using DN name constraints, which are uncommon outside internal PKIs, and to certificates without a subjectAlternativeName. This issue is fixed in version 3.13.0.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| botanNiche | < 3.13.0 | 3.13.0 |
What to do
Update to a fixed version: 3.13.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | HighAdmin or equivalent | From the CVSS vector | 0.20 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.2% chance of exploitation in 30 days (percentile 10), as of 2026-12-06.
The arithmetic
- Prerequisites multiplied together0.041
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.0405 × threat 0.850.103
- Rounded to one decimal between 0.1 and 100.1
Exploitation and evidence timeline
- 6 Nov 2026 Published
- 3 Dec 2026 Risk 0.1 (cvss fallback)
Weakness
CWE-295, CWE-1023