Skip to main content

Botan CVE-2026-34580

| EUVDEUVD-2026-19947 CRITICAL
Improper Certificate Validation (CWE-295)
2026-04-07 GitHub_M
9.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Present end entity certificate with matching DN
  2. Delivery
    Certificate_Store returns true for non-identical cert
  3. Exploit
    Path validation assumes certificate identity
  4. Execution
    Bypass certificate verification checks
  5. Impact
    Accept invalid or malicious certificate

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
Exploitation Conditions

Remote unauthenticated attacker can present a crafted end-entity certificate with matching DN and subject key identifier to Botan 3.11.0 during X.509 certificate path validation. No victim interaction required; exploitation occurs during certificate chain verification in default configurations.

Impact

This vulnerability presents critical real-world risk despite limited version exposure. The CVSS v4.0 score of 9.3 reflects maximum network attack surface (AV:N), no authentication requirements (PR:N), low attack complexity (AC:L), and high impact across confidentiality, integrity, and availability (VC:H/VI:H/VA:H). An attacker needs only to obtain or generate a certificate with DN and SKI matching any trusted root-trivial for publicly-known root CA attributes-to completely bypass certificate chain validation. This enables man-in-the-middle attacks against any TLS connection validated by Botan 3.11.0, with automatable exploitation requiring minimal skill. However, risk is substantially mitigated by the narrow affected version range (only 3.11.0, released recently) and rapid patch availability in 3.11.1. No EPSS score is provided, and no CISA KEV listing exists, indicating no confirmed active exploitation. The vulnerability is not a zero-day; it was publicly disclosed through GitHub Security Advisory GHSA-v782-6fq4-q827 with immediate patch availability. Organizations using Botan 3.11.0 in production TLS implementations face severe risk and should prioritize immediate remediation, while those on earlier versions (3.10.x or below) or who have already updated to 3.11.1+ are not affected.

Exploit ScenarioDerived

An attacker intercepts TLS traffic destined for a legitimate server protected by a certificate chain rooted in a well-known CA like DigiCert or Let's Encrypt. The attacker generates a self-signed certificate with DN field cn=DigiCert Global Root G2 and matching Subject Key Identifier extracted from the public root certificate. When the victim application using Botan 3.11.0 validates the attacker's certificate, Certificate_Store::certificate_known matches the DN and SKI against its trusted root store and incorrectly returns true, causing the malicious certificate to be accepted as a trusted root without cryptographic verification. The attacker establishes a man-in-the-middle position, decrypting and potentially modifying all TLS traffic. This scenario requires only network interception capability and knowledge of public root CA attributes, making it automatable and highly practical against vulnerable deployments.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 07, 2026

Certificate validation bypass in Botan 3.11.0 allows unauthenticated remote attackers to impersonate trusted certificate authorities by presenting end-entity certificates with matching Distinguished Names and subject key identifiers. The flaw in Certificate_Store::certificate_known incorrectly accepts malicious certificates as trusted roots without verifying actual certificate identity, enabling complete TLS/PKI chain validation bypass. This affects only version 3.11.0 and is fixed in 3.11.1. EPSS data not available; no public exploit identified at time of analysis, though the attack vector is network-accessible with low complexity (CVSS:4.0 AV:N/AC:L/PR:N).

RemediationAI

Upgrade immediately to Botan version 3.11.1, which corrects the Certificate_Store::certificate_known logic to verify complete certificate identity rather than solely DN and SKI attribute matching. The vendor-released patch is available through standard Botan distribution channels and documented in GitHub Security Advisory GHSA-v782-6fq4-q827 at https://github.com/randombit/botan/security/advisories/GHSA-v782-6fq4-q827. Organizations running version 3.11.0 in production should treat this as an emergency upgrade due to the trivial exploit path and critical impact on TLS security. No workarounds are available; the only effective remediation is version upgrade. For systems unable to immediately upgrade, consider temporarily reverting to Botan 3.10.x stable releases until 3.11.1 deployment is feasible, though this may require code compatibility assessment. Verify patch application by confirming installed version reports 3.11.1 or later and review application logs for any suspicious certificate validation failures that may indicate prior exploitation attempts.

Affected VersionsENISA

Botan 3.11.0, < 3.11.1

Affected Packages

euvd botan_3_11_0 fix: 3.11.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Botan is a widely-used C++ cryptography library providing TLS, X.509, and public key infrastructure capabilities. The vulnerability resides in the Certificate_Store::certificate_known function introduced in version 3.11.0, which performs certificate validation during TLS handshakes and X.509 path building. The function was designed to check if a certificate exists in the trusted store but implemented flawed comparison logic-it matched only the Distinguished Name (DN) and optional Subject Key Identifier (SKI) fields rather than performing cryptographic verification of the entire certificate structure. This represents CWE-295 (Improper Certificate Validation), a critical flaw in PKI trust anchor verification. When path validation logic was extended in 3.11.0 to optimize lookups, it incorrectly assumed certificate_known performed identity verification rather than merely attribute matching. The affected product CPE is cpe:2.3:a:randombit:botan:3.11.0, indicating a single-version regression rather than longstanding architectural weakness.

Know when Botan gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 9.3 CRITICAL
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
SUSE 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Red Hat 9.1 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
Apr 16, 2026 - 05:45 EUVD-patch-fix
executive summary
Patch available
Apr 16, 2026 - 05:29 EUVD
3.11.1
CVE Published
Apr 07, 2026 - 21:12 nvd
CRITICAL 9.3

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Botan 3.11.0 contains a critical certificate validation bypass that allows unauthenticated attackers to impersonate trusted certificate authorities and bypass TLS security controls. Any organization using this specific version for cryptographic or certificate validation operations faces immediate risk of man-in-the-middle attacks and compromised authentication chains. Immediate patching to 3.11.1 is essential to restore PKI integrity.

Business Impact: Severe
Compensating Controls

Apply vendor patch. No interim mitigations eliminate the validation bypass; only upgrade to Botan 3.11.1 restores proper certificate chain verification.

Threat Intelligence Overview

EPSS Score
0.0%
Top 94% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Botan

View all
CVE-2016-2195 CRITICAL
9.8 May 13

Integer overflow in the PointGFp constructor in Botan before 1.10.11 and 1.11.x before 1.11.27 allows remote attackers t

CVE-2016-2196 CRITICAL
9.8 May 13

Heap-based buffer overflow in the P-521 reduction function in Botan 1.11.x before 1.11.27 allows remote attackers to cau

CVE-2017-2801 MEDIUM POC
6.5 May 24

A programming error exists in a way Randombit Botan cryptographic library version 2.0.1 implements x500 string compariso

CVE-2024-50383 MEDIUM POC
5.9 Oct 23

Botan before 3.6.0, when certain GCC versions are used, has a compiler-induced secret-dependent operation in lib/utils/d

CVE-2024-50382 MEDIUM POC
5.9 Oct 23

Botan before 3.6.0, when certain LLVM versions are used, has compiler-induced secret-dependent control flow in lib/utils

CVE-2021-40529 MEDIUM POC
5.9 Sep 06

The ElGamal implementation in Botan through 2.18.1, as used in Thunderbird and other products, allows plaintext recovery

CVE-2018-12435 MEDIUM POC
5.9 Jun 15

Botan 2.5.0 through 2.6.0 before 2.7.0 allows a memory-cache side-channel attack on ECDSA signatures, aka the Return Of

CVE-2015-7826 CRITICAL
9.8 Apr 10

botan 1.11.x before 1.11.22 improperly handles wildcard matching against hostnames, which might allow remote attackers t

CVE-2016-6878 CRITICAL
9.8 Apr 10

The Curve25519 code in botan before 1.11.31, on systems without a native 128-bit integer type, might allow attackers to

CVE-2016-9132 CRITICAL
9.8 Jan 30

In Botan 1.8.0 through 1.11.33, when decoding BER data an integer overflow could occur, which would cause an incorrect l

CVE-2021-24115 CRITICAL
9.8 Feb 22

In Botan before 2.17.3, constant-time computations are not used for certain decoding and encoding operations (base32, ba

CVE-2018-9127 CRITICAL
9.8 Apr 02

Botan 2.2.0 - 2.4.0 (fixed in 2.5.0) improperly handled wildcard certificates and could accept certain certificates as v

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Server 12 SP5 Fixed
SUSE Linux Enterprise Server 12 SP5-LTSS Fixed
SUSE Linux Enterprise Server 12 SP5-LTSS Extended Security Fixed
SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 Fixed
SUSE Linux Enterprise Server for SAP Applications 12 SP5 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy