Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 84%

CVE-2026-34580: CWE-295: Improper Certificate Validation in randombit botan

0
Critical
VulnerabilityCVE-2026-34580cvecve-2026-34580cwe-295
Published: 04/07/2026 (04/07/2026, 21:12:09 UTC)
Source: CVE Database V5
Vendor/Project: randombit
Product: botan

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.

CVSS v4.0

Score 9.3critical

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →ai
randombit/botan
pkg:github/randombit/botan
Affected versions
<3.11.1 >=3.11.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 09:03:08 UTC

Technical Analysis

In Botan 3.11.0, the Certificate_Store::certificate_known function returns true when any certificate in the store matches the DN and subject key identifier of the input certificate, without confirming the certificates are identical. The path validation logic assumes certificate_known only returns true for identical certificates, leading to acceptance of an end entity certificate as a trusted root if it shares DN and subject key identifier with a trusted root. This improper certificate validation (CWE-295) can cause trust bypass. The vulnerability is resolved in Botan 3.11.1.

Potential Impact

An attacker can present an end entity certificate that shares the DN and subject key identifier with a trusted root certificate, causing the library to accept it immediately as a trusted root. This undermines the trust model of certificate validation, potentially allowing unauthorized certificates to be trusted and compromising secure communications relying on Botan.

Mitigation Recommendations

A fix is available in Botan version 3.11.1. Users should upgrade to version 3.11.1 or later to remediate this vulnerability. Patch status is confirmed by the vendor advisory. No additional mitigation steps are indicated.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-30T16:56:30.999Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-34580","vendor":"Red Hat"}]

Threat ID: 69d5779eaaed68159a6ad780

Added to database: 04/07/2026, 21:31:10 UTC

Last enriched: 07/15/2026, 09:03:08 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 193

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses