Skip to content

botan

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?

ProductAffected versions (from the sources)Fixed in
botanNiche< 3.13.03.13.0

What to do

Update to a fixed version: 3.13.0.

Why this score

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededHighAdmin or equivalentFrom the CVSS vector0.20
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.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
  1. Prerequisites multiplied together0.041
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.3 × prerequisites 0.0405 × threat 0.850.103
  4. Rounded to one decimal between 0.1 and 100.1

How the score works

Exploitation and evidence timeline

  1. 6 Nov 2026 Published
  2. 3 Dec 2026 Risk 0.1 (cvss fallback)

Weakness

CWE-295, CWE-1023

References

Get alerts for botan

Free email or text alerts when a vulnerability in botan reaches risk 8 or higher. Nothing else.