CVE-2026-48057
published low CVSS 4.0 · 2.1Botan: directoryName nameConstraint bypass via multi-AVA RDN flattening in matches_dn
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| randombit | — | botan< 3.13.0 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Alpine Linux | edge | botan3 | Fixed | 3.14.1-r0 | Package fix record |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.1 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| randombit | botan | < 3.13.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-295 CWE-295: Improper Certificate Validation
- CWE-1023 CWE-1023: Incomplete Comparison with Missing Factors
References
3Provider assertions
2GitHub_M · cna
Botan: directoryName nameConstraint bypass via multi-AVA RDN flattening in matches_dn
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- fd052388a3920fafcac39545f52cf5b27eff15561b16b88062730b958bf5fa28
- Ingested
- 10 Nov 2026, 20:22:16 UTC
- Source record
- Official CVE record