# CVE-2026-48057: Botan: directoryName nameConstraint bypass via multi-AVA RDN flattening in matches_dn

- Severity: Low 2.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-11-06T21:24:51.002Z
- Modified: 2026-11-12T22:18:35.610Z
- Weaknesses: CWE-295, CWE-1023
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- randombit botan: < 3.13.0

## References

- <https://github.com/randombit/botan/security/advisories/GHSA-3mh2-26h4-wrqc>
- <https://github.com/randombit/botan/pull/5618>
- <https://github.com/randombit/botan/commit/a22260c368373a134ff9778b9d8781edb2e1eb99>

## Sources

- CVE List: [CVE-2026-48057](https://www.cve.org/CVERecord?id=CVE-2026-48057), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2026-48057](https://nvd.nist.gov/vuln/detail/CVE-2026-48057), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-48057 · Whole record: https://cve.day/CVE-2026-48057.json · Rebuilt by cve.day 2026-11-25T22:59:49.332Z
