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…

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

0
Critical
VulnerabilityCVE-2026-34580cvecve-2026-34580cwe-295
Published: Tue Apr 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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/07/2026, 21:46:17 UTC

Technical Analysis

In Botan 3.11.0, the function Certificate_Store::certificate_known returns true when any certificate in the store matches the DN and subject key identifier of the input certificate, without confirming they are the same certificate. This led to a vulnerability where the path validation logic assumed certificates were identical if certificate_known returned true. Consequently, an end entity certificate with a DN and subject key identifier matching a trusted root certificate could be accepted as a trusted root, bypassing intended validation checks. This improper certificate validation is classified under CWE-295. The vulnerability is resolved in Botan 3.11.1.

Potential Impact

An attacker could present an end entity certificate that shares the distinguished name and subject key identifier of a trusted root certificate, causing the Botan library to accept it as a trusted root. This undermines the trust model of certificate validation, potentially allowing unauthorized certificates to be trusted and enabling man-in-the-middle or impersonation attacks in systems relying on affected Botan versions.

Mitigation Recommendations

This vulnerability is fixed in Botan version 3.11.1. Users should upgrade to version 3.11.1 or later to remediate this issue. No other mitigation or temporary workaround is indicated in the available data.

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

Threat ID: 69d5779eaaed68159a6ad780

Added to database: 4/7/2026, 9:31:10 PM

Last enriched: 4/7/2026, 9:46:17 PM

Last updated: 4/8/2026, 12:43:07 AM

Views: 5

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