CRITICAL🇵🇱 Wersja polska

CVE-2026-34580

CVSS 9.3v4.0pub. 2026-04-07upd. 2026-07-24

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.

🤖 AI Analysis
How it works

The Certificate_Store::certificate_known function returned true if a certificate in the store had a matching DN name (and optionally subject key identifier) with the certificate passed as an argument — without checking whether both certificates are actually identical. The extended path validation logic introduced in version 3.11.0 incorrectly assumed that this function confirms certificate identity rather than merely metadata similarity. As a result, an attacker can present any end-entity certificate whose DN (and possibly subject key identifier) matches that of any trusted root CA, and the system will immediately accept it as a trusted root.

Impact

An attacker can bypass TLS or PKI trust chain verification and impersonate a trusted certificate authority, enabling man-in-the-middle attacks or authentication without possessing the proper certificate.

Mitigation & patch

The Botan library should be updated to version 3.11.1, where the vulnerability has been fixed.

Who is affected

Botan Project Botan version 3.11.0

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Botan Project Botan

    APP
    Botan Project
    3.11.0
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
CWE
References

Related vulnerabilities

CVE-2022-43705CRITICAL9.1PL ✓same product

Fałszowanie odpowiedzi OCSP w bibliotece Botan — błąd weryfikacji certyfikatów

CVE-2021-24115CRITICAL9.8PL ✓same product

Botan: brak obliczeń constant-time w operacjach kodowania/dekodowania

CVE-2018-9127CRITICAL9.8PL ✓same product

Nieprawidłowa walidacja wildcard certyfikatów w Botan 2.2.0–2.4.0

CVE-2016-6878CRITICAL9.8PL ✓same product

Niezdefiniowane zachowanie w Curve25519 biblioteki Botan na platformach 32-bitowych

CVE-2015-7826CRITICAL9.8PL ✓same product

Nieprawidłowa walidacja wildcard w certyfikatach X.509 w Botan