Skip to main content

Botan ocsp_check EUVDEUVD-2026-113277

| CVE-2026-118768 MEDIUM
Improper Verification of Cryptographic Signature (CWE-347)
2026-10-29 GitHub_M
5.9
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Gain on-path position on plaintext OCSP HTTP (or control responder)
  2. Delivery
    Operator/automation runs botan ocsp_check on revoked cert
  3. Exploit
    Return forged GOOD response with empty/invalid signature
  4. Execution
    CLI omits signature and signer authorization check
  5. Impact
    Exit status 0, revoked certificate trusted

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Signature verification
Exploitation Conditions

Exploitation requires that the target use the Botan command-line interface subcommand botan ocsp_check - the library's OCSP/path-validation API is NOT affected, which is the primary limiting factor. The attacker must be able to control the OCSP HTTP response body reaching the CLI: either by sitting on-path on the (typically plaintext HTTP) connection to the certificate's AIA URL, or by controlling the responder at that URL. The attacker needs NO OCSP signing certificate and NO private key - an empty, invalid, or unauthorized signature is accepted as long as the response is a matching, timely GOOD. A further prerequisite is that the certificate being checked is actually revoked (otherwise there is nothing to hide), and that an operator or automated process invokes the command (the UI:P requirement). Additional limits: the window is scoped to whatever consumes the CLI's exit code / 'OCSP check OK' output, and the fix in 3.13.0 is the only complete remedy stated by the vendor.

Impact

This is a medium-severity integrity flaw (CVSS 4.0 base 5.9) whose signals are internally consistent and point to a real-but-bounded priority rather than an emergency. The CVSS 4.0 vector AV:A/AC:L/AT:P/PR:N/UI:P shows an adjacent/on-path attacker (AT:P captures the requirement to sit on the OCSP HTTP path or control the responder), no privileges, but a passive user-interaction requirement (UI:P) because an operator or automated job must actually invoke the CLI subcommand. Impact is integrity-only (VI:H; VC/VA:N, no subsequent-system scope), reflecting that a revoked certificate is wrongly accepted as valid rather than any data disclosure or availability loss. No EPSS score and no KEV status were supplied in the input, and no public exploit or PoC reference is present (only the vendor advisory, fix PR, and commit) - so there is no evidence of active or widespread exploitation. The vuln.today decision label is this_month, consistent with a serious correctness/trust flaw that warrants scheduled remediation but is dampened by its narrow attack surface. The most important limiting fact is scope: the advisory and the diff confirm ONLY the command-line interface ocsp_check is affected, not the Botan library's OCSP API, which substantially narrows real-world exposure. Net: a genuine but not drop-everything issue - prioritize where the CLI feeds automated certificate-validation decisions.

Exploit ScenarioDerived

An operator or CI/CD job uses botan ocsp_check to confirm a certificate has not been revoked. Because OCSP responders typically use plaintext HTTP, an on-path attacker intercepts the request to the certificate's AIA URL (or a malicious responder answers directly) and returns a matching, timely GOOD response carrying an empty, invalid, or unauthorized signature; the CLI skips signature verification and exits 0 with 'OCSP check OK', so a revoked certificate is treated as valid. No public exploit is identified, though the fix PR ships a regression test harness that demonstrates the acceptance of an unsigned GOOD response.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 29, 2026

The botan ocsp_check CLI subcommand in Botan 1.11.34 through 3.12.x prints "OCSP check OK" and returns exit status 0 for a revoked certificate when a hostile OCSP responder or an on-path attacker supplies a matching, timely GOOD response carrying an empty, invalid, or unauthorized signature. Only the command-line tool is affected - Botan's OCSP and PKIX path-validation library APIs are not - so exposure is confined to operators and automation that gate revocation decisions on this command's exit code or stdout. Severity is medium (CVSS 4.0 base 5.9; assessed CVSS 3.1 base 5.9, AV:A/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N), there is no CISA KEV entry and no public exploit tooling was identified at time of analysis, although the upstream fix PR ships regression fixtures that reproduce an unsigned GOOD response being accepted by the vulnerable build. The priority label from vuln.today is this_month.

RemediationAI

Upgrade to Botan 3.13.0, the version named by the vendor as the fix, which is delivered through https://github.com/randombit/botan/pull/5825 and commit 46b2a9ca59b0797184fbf7537495bda6e61a1983 and is documented in the advisory at https://github.com/randombit/botan/security/advisories/GHSA-mpr7-9494-4qcw; the patched code validates the OCSP response signature and authorizes the signer against a certificate store before reporting success, so any revocation gating built on this command's exit status or output becomes trustworthy again. There is no separate vendor-supplied partial fix - the advisory presents updating as the remedy, and the library API path was never affected, so applications that can perform OCSP checking through Botan::PKIX::check_ocsp() and overall_status() rather than shelling out to the CLI avoid the flaw entirely while remaining on an older release, at the cost of code changes and of the CLI's convenience output. Until an upgrade can be scheduled, treat botan ocsp_check output as advisory only and do not let exit status 0 authorize a certificate: corroborate revocation status out of band via a CRL fetched over HTTPS or via a responder reached over a mutually authenticated channel, and restrict where the tool is invoked to hosts where an on-path attacker on the AIA connection is not plausible. Disabling or skipping the revocation check is not an acceptable substitute, since it discards revocation status information altogether, and pinning AIA endpoints to HTTPS only helps if the certificate's AIA URL and the responder actually support TLS.

Affected VersionsENISA

Botan 1.11.34, < 3.13.0

Affected Packages

euvd botan fix: 3.13.0

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

OCSP (Online Certificate Status Protocol) lets a relying party ask a responder whether a certificate has been revoked; the responder URL is usually carried in the certificate's Authority Information Access (AIA) extension and in practice is very often plain HTTP. The CLI's ocsp_check command fetched that response and passed it straight to OCSP::Response::status_for(), which only confirms that the response corresponds to the queried issuer/subject pair, is within its validity window, and says GOOD - it does not verify the response's signature nor authorize the signer against any trust store. The root cause is CWE-347, Improper Verification of Cryptographic Signature: an attacker with control of the response body needs no OCSP signing certificate and no private key at all, because a signature that is absent, malformed, or chained to an untrusted responder is equally accepted. The upstream fix (PR 5825) routes the check through Botan::PKIX::check_ocsp() with a Certificate_Store of trusted CAs and Path_Validation_Restrictions, then requires both an overall OK status and the presence of OCSP_RESPONSE_GOOD in the per-certificate result before returning success. Because the defect lived in the CLI command implementation in src/cli/x509.cpp rather than in the OCSP parsing or PKIX validation code, library consumers that call the validation APIs directly were never on this code path. The trigger for a misleading result is simply an attacker-influenced response body reaching a locally executed command; the CVSS 4.0 vector's AT:P and UI:P reflect that a manipulated responder or network position plus a user or scheduled job running the tool are both required.

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 5.9 MEDIUM
CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.7 MEDIUM

On-path/adjacent attacker over plaintext OCSP HTTP (AV:A), operator must run the CLI (UI:R), no privileges needed (PR:N); revocation decision is subverted so I:H, with no confidentiality or availability impact.

3.1 AV:A/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
4.0 AV:A/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

1
Patch available
Oct 29, 2026 - 18:03 EUVD

DescriptionCVE.org

Botan is a C++ cryptography library. From 1.11.34 until 3.13.0, the botan ocsp_check command requested an OCSP response from a certificate's Authority Information Access URL without verifying the response signature or authorizing the signer. A malicious responder or on-path attacker could return a matching and timely GOOD response with an empty, invalid, or unauthorized signature, causing a revoked certificate to produce exit status 0 and OCSP check OK output. Only the command-line interface is affected. This issue is fixed in version 3.13.0.

Threat Intelligence Overview

EPSS Score
0.1%
Top 100% exploitable
Prevalence
Low
niche C++ crypto library; only the CLI ocsp_check subcommand is affected
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Controlled
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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

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