Cyber Posture

CVE-2026-34580

High

Published: 07 April 2026

Published
07 April 2026
Modified
17 April 2026
KEV Added
Patch
CVSS Score 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS Score 0.0002 6.9th percentile
Risk Priority 15 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2026-34580 is a high-severity Improper Certificate Validation (CWE-295) vulnerability in Botan Project Botan. Its CVSS base score is 7.5 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 6.9th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified are NIST 800-53 SI-2 (Flaw Remediation) and RA-5 (Vulnerability Monitoring and Scanning).

Threat & Defense at a Glance

What attackers do: exploitation maps to Exploit Public-Facing Application (T1190) and 1 other technique. What defenders deploy: see the NIST 800-53 controls recommended below.
Threat & Defense Details

Mitigating Controls (NIST 800-53 r5)AI

prevent

Timely flaw remediation by upgrading Botan from 3.11.0 to 3.11.1 directly fixes the improper certificate validation logic that accepts end-entity certificates as trusted roots.

prevent

Establishes and enforces PKI certificate validation requirements including full chain validation and authoritative source checks, mitigating flawed library assumptions about certificate identity matching.

detect

Vulnerability scanning identifies deployments of vulnerable Botan 3.11.0, enabling detection of the improper certificate validation flaw for subsequent remediation.

MITRE ATT&CK Enterprise TechniquesAI

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1557 Adversary-in-the-Middle Credential Access
Adversaries may attempt to position themselves between two or more networked devices using an adversary-in-the-middle (AiTM) technique to support follow-on behaviors such as [Network Sniffing](https://attack.
Why these techniques?

The certificate validation bypass allows remote presentation of a forged end-entity certificate accepted as trusted, directly enabling exploitation of public-facing apps for initial access (T1190) and facilitating impersonation of trusted entities in TLS (T1557 Adversary-in-the-Middle).

Confidence: MEDIUM · MITRE ATT&CK Enterprise v18.1

NVD 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…

more

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.

Deeper analysisAI

CVE-2026-34580 affects Botan, a C++ cryptography library, specifically version 3.11.0. The vulnerability stems from the Certificate_Store::certificate_known function, which returns true if any certificate in the store matches the distinguished name (DN) and subject key identifier (SKID), if set, of the provided certificate, without verifying that the certificates are identical. An extension to path validation logic in 3.11.0 incorrectly assumed this function only returned true for identical certificates, leading to flawed validation (CWE-295: Improper Certificate Validation). The CVSS v3.1 base score is 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

An attacker can exploit this remotely with low complexity and no privileges or user interaction by presenting an end-entity certificate whose DN and SKID match those of a trusted root certificate in the store. The end-entity certificate is then accepted as a trusted root, bypassing proper chain validation. This enables integrity violations, such as impersonating trusted entities in TLS handshakes or other PKI-dependent operations that use Botan for certificate path validation.

The vulnerability is fixed in Botan 3.11.1, as detailed in the project's security advisory at https://github.com/randombit/botan/security/advisories/GHSA-v782-6fq4-q827. Security practitioners using Botan 3.11.0 should upgrade to 3.11.1 or later to mitigate the issue.

Details

CWE(s)

Affected Products

botan project
botan
3.11.0

CVEs Like This One

CVE-2026-34582Same product: Botan Project Botan
CVE-2026-32877Same product: Botan Project Botan
CVE-2025-68121Shared CWE-295
CVE-2026-5501Shared CWE-295
CVE-2025-30277Shared CWE-295
CVE-2025-1193Shared CWE-295
CVE-2025-46788Shared CWE-295
CVE-2026-33810Shared CWE-295
CVE-2026-32627Shared CWE-295
CVE-2024-55581Shared CWE-295

References