Description
Botan is a C++ cryptography library. Prior to version 3.11.0, during processing of an X.509 certificate path using name constraints which restrict the set of allowable DNS names, if no subject alternative name is defined in the end-entity certificate Botan would check that the CN was allowed by the DNS name constraints, even though this check is technically not required by RFC 5280. However this check failed to account for the possibility of a mixed-case CN. Thus a certificate with CN=Sub.EVIL.COM and no subject alternative name would bypasses an excludedSubtrees constraint for evil.com because the comparison is case-sensitive. This issue has been patched in version 3.11.0.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| randombit | botan | < 3.11.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | botan3 | 3.11.0+dfsg-2 | — |
| Debian 13 | botan | No fix yet | — |
| Debian 13 | botan3 | 3.11.0+dfsg-2 | — |
| Debian 12 | botan | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | botan3 | No fix yet | — |
| Ubuntu 26.04 LTS | botan3 | No fix yet | — |
| Ubuntu 25.10 | botan +1 | No fix yet | — |
| Ubuntu 20.04 LTS | botan | No fix yet | — |
| Ubuntu 18.04 LTS | botan | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | botan1.10 | No fix yet | — |
| Ubuntu Pro 24.04 LTS | botan | No fix yet | — |
| Ubuntu Pro 22.04 LTS | botan | No fix yet | — |
| Ubuntu Pro 14.04 LTS | botan1.10 | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 16.0 | Botan | 3.7.1-160000.4.1 | openSUSE-SU-2026:20566-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | botan3 | 3.11.0-r0 | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | botan2 | No fix yet | — |
Advisories 1
- openSUSE-SU-2026:20566-1 Security update for Botan SUSE / openSUSE Security Updates · Apr 22, 2026