CVEfocus › CVE database › CVE-2026-48057

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

CVSS 2.1 LowEPSS 0.3% (higher than 10% of CVEs)Published 2026-11-06Updated 2026-11-10Assigner: 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.

CWE-1023CWE-295

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
8Fix pending
1Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10botan3Fix pendingUBUNTU-CVE-2026-48057
Ubuntu 26.04botan3Under investigationUBUNTU-CVE-2026-48057
Ubuntu 24.04botanFix pendingUBUNTU-CVE-2026-48057
Ubuntu 22.04botanFix pendingUBUNTU-CVE-2026-48057
Ubuntu 20.04botanFix pendingUBUNTU-CVE-2026-48057
Ubuntu 18.04botanFix pendingUBUNTU-CVE-2026-48057
Debian 14botan3Fixed3.13.0+dfsg-2DEBIAN-CVE-2026-48057
Debian 13botanFix pendingDEBIAN-CVE-2026-48057
Debian 13botan3Fix pendingDEBIAN-CVE-2026-48057
Debian 12botanFix pendingDEBIAN-CVE-2026-48057

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.