p PatchFirst

CVE-2026-48057

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

CVSS 2.1 · Low · EPSS 0.2% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • botanNo fix published
  • botan Debian 12No fix published
  • botan Debian 13No fix published
  • botan3 Debian 13No fix published
  • and 7 more

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="botan"'
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="botan3"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Stack: system

Affected products and versions

  • botan

    Versions
    • < 3.13.0: Affected

    No fix published

  • botan Debian 12

    Versions
    • 2.19.3+dfsg-1
    • 2.19.3+dfsg-1+deb12u1
    • 2.19.4+dfsg-1
    • 2.19.5+dfsg-1
    • 2.19.5+dfsg-2
    • 2.19.5+dfsg-3
    All versions (7)
    • 2.19.5+dfsg-4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • botan Debian 13

    Versions
    • 2.19.5+dfsg-4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • botan3 Debian 13

    Versions
    • 3.10.0+dfsg-1
    • 3.10.0+dfsg-2
    • 3.11.0+dfsg-1
    • 3.11.1+dfsg-1
    • 3.11.1+dfsg-2
    • 3.12.0+dfsg-1
    All versions (15)
    • 3.12.0+dfsg-2
    • 3.12.0+dfsg-2~deb13u1
    • 3.13.0+dfsg-1
    • 3.13.0+dfsg-2
    • 3.7.1+dfsg-2
    • 3.8.1+dfsg-1
    • 3.9.0+dfsg-1
    • 3.9.0+dfsg-2
    • 3.9.0+dfsg-2.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • botan3 Debian 14

    Versions
    • 3.10.0+dfsg-1
    • 3.10.0+dfsg-2
    • 3.11.0+dfsg-1
    • 3.11.1+dfsg-1
    • 3.11.1+dfsg-2
    • 3.12.0+dfsg-1
    All versions (14)
    • 3.12.0+dfsg-2
    • 3.12.0+dfsg-2~deb13u1
    • 3.13.0+dfsg-1
    • 3.7.1+dfsg-2
    • 3.8.1+dfsg-1
    • 3.9.0+dfsg-1
    • 3.9.0+dfsg-2
    • 3.9.0+dfsg-2.1
    Affected ranges
    • ECOSYSTEM: < 3.13.0+dfsg-2

    Update to 3.13.0+dfsg-2

  • botan Ubuntu 18.04 LTS

    Versions
    • 2.4.0-3
    • 2.4.0-4
    • 2.4.0-5ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • botan Ubuntu 20.04 LTS

    Versions
    • 2.9.0-2
    • 2.9.0-2build1
    • 2.12.1-2
    • 2.12.1-2build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • botan Ubuntu Pro 22.04 LTS

    Versions
    • 2.17.3+dfsg-3
    • 2.19.1+dfsg-2ubuntu1
    • 2.19.1+dfsg-2ubuntu1+esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • botan Ubuntu Pro 24.04 LTS

    Versions
    • 2.19.3+dfsg-1ubuntu1
    • 2.19.3+dfsg-1ubuntu2
    • 2.19.3+dfsg-1ubuntu2+esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • botan3 Ubuntu 26.10

    Versions
    • 3.10.0+dfsg-2
    • 3.11.1+dfsg-2
    • 3.12.0+dfsg-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • botan3 Ubuntu Pro 26.04 LTS

    Versions
    • 3.7.1+dfsg-2
    • 3.10.0+dfsg-2
    • 3.10.0+dfsg-2ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →