CVE-2026-34580
published critical CVSS 4.0 · 9.3Botan has a certificate authentication bypass due to trust anchor confusion
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| randombit | — | botan>= 3.11.0, < 3.11.1 | Affected | Not stated | GitHub_M |
| Red Hat Enterprise Linux | 10 | rust-sequoia-sq | Affected | Not stated | redhat-SADP |
| Red Hat Enterprise Linux | 10 | rust-sequoia-sqv | Affected | Not stated | redhat-SADP |
| Alpine Linux | edge | botan3 | Fixed | 3.11.1-r0 | Package fix record |
| Alpine Linux | v3.24 | botan3 | Fixed | 3.11.1-r0 | Package fix record |
Description
Botan is a C++ cryptography library. In 3.11.0, the function Certificate_Store::certificate_known had a misleading name; it would return true if any certificate in the store had a DN (and subject key identifier, if set) matching that of the argument. It did not check that the cert it found and the cert it was passed were actually the same certificate. In 3.11.0 an extension of path validation logic was made which assumed that certificate_known only returned true if the certificates were in fact identical. The impact is that if an end entity certificate is presented, and its DN (and subject key identifier, if set) match that of any trusted root, the end entity certificate is accepted immediately as if it itself were a trusted root. , This vulnerability is fixed in 3.11.1.
A flaw was found in Botan, a C++ cryptography library. Due to a misleading function name and an assumption in path validation logic, an end entity certificate could be incorrectly accepted as a trusted root. This occurs when the end entity certificate's Distinguished Name (DN) and Subject Key Identifier (SKI) match those of any trusted root certificate in the store, even if the certificates are not identical. This vulnerability allows for a bypass of certificate validation, potentially enabling an attacker to present a malicious certificate that is trusted by the system.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.3 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 9.1 | critical | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| randombit | botan | >= 3.11.0, < 3.11.1 (affected) | GitHub_M · cna |
| Red Hat | Red Hat Enterprise Linux 10 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 10 | Default: affected | redhat-SADP · adp |
Weaknesses
2- CWE-295 CWE-295: Improper Certificate Validation
- CWE-295 Improper Certificate Validation
References
4- https://access.redhat.com/security/cve/CVE-2026-34580
- RHBZ#2456288 https://bugzilla.redhat.com/show_bug.cgi?id=2456288
- https://github.com/randombit/botan/security/advisories/GHSA-v782-6fq4-q827
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34580.json
Provider assertions
3GitHub_M · cna
Botan has a certificate authentication bypass due to trust anchor confusion
redhat-SADP · adp
Botan: Botan: Certificate validation bypass due to incorrect certificate matching
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 06ef32a210cfe8f2297b1a6b392633b5916bd0b57b5c0b2d5fa038ec93c55172
- Ingested
- 23 Sep 2026, 09:11:13 UTC
- Source record
- Official CVE record