Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIntercept or hijack OCSP responder traffic
-
DeliveryCraft OCSP response with same-issuer prefix serial
-
ExploitSubmit response to wolfSSL OCSP lookup
-
ExecutionPrefix match triggers incorrect status binding
-
ImpactRevoked certificate reported as valid
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
|
| Exploitation Conditions | Exploitation requires three concurrent conditions: (1) wolfSSL must be compiled with HAVE_OCSP and OPENSSL_EXTRA enabled - the vulnerability does not exist in builds without OCSP support; (2) the application must perform client-side OCSP certificate revocation checking during TLS certificate validation; and (3) the attacker must control or forge an OCSP response - either via MITM of unauthenticated HTTP OCSP traffic, DNS hijacking of the OCSP responder hostname, or operating as a rogue responder - and must craft a response containing a SingleResponse from the same CA issuer whose serial number bytes are a strict byte-prefix of the target certificate's serial. The CVSS 4.0 AT:P (Attack Requirements: Present) formally encodes this multi-factor prerequisite. Exploitation is entirely prevented if OCSP is not compiled in, if OCSP stapling is used exclusively (removing the client-query path), or if OCSP responder traffic is protected by mutual TLS. Authentication level is not a limiting factor per the PR:N CVSS metric - the attack is exercised through the OCSP response channel, not through authenticated application endpoints. |
| Impact | The CVSS 4.0 score of 6.3 with vector AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N reflects a network-reachable, unauthenticated flaw carrying limited integrity impact, but with Attack Requirements Present (AT:P) - meaning exploitation is not trivially passive. An attacker must either act as a man-in-the-middle against unprotected OCSP HTTP traffic, operate a rogue OCSP responder (via DNS hijacking or misconfigured responder URI), and additionally possess or craft a certificate from the same CA whose serial is a byte-prefix of the target. This combination elevates practical complexity beyond raw CVSS surface suggests. There is no CISA KEV listing and no public POC, making opportunistic mass exploitation unlikely at this time. The realistic threat scenario is targeted: an attacker with network position who wants to make a revoked certificate appear valid. The integrity impact (VI:L) is real but scoped - no confidentiality or availability degradation applies. The CPE wildcard on version range means no lower bound on affected versions is confirmed; all wolfSSL deployments using OCSP are potentially affected until patched. |
| Exploit ScenarioDerived | An attacker performing a man-in-the-middle attack intercepts an application's OCSP request for a target certificate with serial |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 25, 2026
OCSP certificate status lookup in wolfSSL returns the wrong certificate's revocation status when a same-issuer SingleResponse serial number is a byte-prefix of the requested certificate's serial. The wolfSSL_OCSP_resp_find_status function in src/ocsp.c compared serial bytes via XMEMCMP without first verifying that both serial lengths are equal, allowing a 2-byte serial 01:02 in an OCSP response to satisfy a lookup for a 3-byte certificate serial 01:02:03. No public exploit has been identified at time of analysis, but the integrity consequence is concrete: a revoked certificate could be incorrectly reported as valid if an attacker can supply a crafted OCSP response.
RemediationAI
Apply the fix from wolfSSL PR #10554 (https://github.com/wolfSSL/wolfssl/pull/10554), which adds a serial-length equality check before the byte comparison in wolfSSL_OCSP_resp_find_status. A specific tagged release version incorporating this fix has not been independently confirmed - monitor https://www.wolfssl.com/docs/security-vulnerabilities/ for the official release announcement. As a compensating control for deployments where OCSP revocation checking is not strictly required, recompiling wolfSSL without HAVE_OCSP entirely removes the vulnerable code path, though this eliminates all OCSP-based revocation checking. Where OCSP must remain enabled, preferring OCSP stapling (server-provided responses over the TLS handshake) over client-initiated OCSP responder queries reduces the window for a rogue responder attack, as the server-stapled response is harder for a remote attacker to substitute. Note that disabling OCSP weakens revocation posture and should be weighed against the organization's certificate trust model.
Affected VersionsENISA
Affected Packages
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
wolfSSL is a lightweight embedded SSL/TLS library targeting IoT, RTOS, and resource-constrained environments (CPE: cpe:2.3:a:wolfssl:wolfssl:*:*:*:*:*:*:*:*). OCSP (Online Certificate Status Protocol) enables certificate revocation checking by querying a responder for a CertID containing issuer hash, issuer key hash, and certificate serial number. The affected function wolfSSL_OCSP_resp_find_status iterated OCSP BasicResponse entries and matched a SingleResponse to the requested CertID by comparing issuer hashes and then calling XMEMCMP on the serial bytes. CWE-295 (Improper Certificate Validation) captures the root cause: the validation logic was structurally incomplete - it compared serial content without enforcing length equality, violating the requirement that two distinct serial numbers must match both in byte value AND in byte count. The one-line fix in PR #10554 inserts single->status->serialSz == id->status->serialSz && before the XMEMCMP call. The vulnerability is conditional on the HAVE_OCSP compile-time flag and OPENSSL_EXTRA compatibility layer being enabled, as confirmed by the test preprocessor guards.
Know when Wolfssl 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
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
High complexity because exploitation requires both MITM/rogue-responder position and a specifically crafted prefix-serial certificate; no confidentiality or availability impact applies.
Primary rating from Vendor (wolfSSL).
CVSS VectorVendor: wolfSSL
DescriptionCVE.org
OCSP CertID serial-number length-confusion in wolfSSL_OCSP_resp_find_status allows a same-issuer SingleResponse whose serial is a prefix of the target serial to be reported as the revocation status of a different certificate. The lookup compared serial-number bytes without first requiring the two serial numbers to be of equal length, so a SingleResponse for one certificate (same issuer) whose serial is a prefix of the target's serial would match, returning the wrong certificate's status. The fix requires the serial lengths to be equal before comparing the serial bytes.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
wolfSSL prior to version 3.12.2 provides a weak Bleichenbacher oracle when any TLS cipher suite using RSA key exchange i
A specially crafted x509 certificate can cause a single out of bounds byte overwrite in wolfSSL through 3.10.2 resulting
Authentication bypass in wolfSSL TLS clients built with Raw Public Key (RPK) support allows a malicious or on-path serve
wolfSSL builds that enable the WOLFSSL_TRUST_PEER_CERT macro can be induced to accept a forged clone of a trusted-peer C
Certificate forgery in the wolfSSL client (versions 5.7.2 through 5.9.2) lets a remote attacker who already holds any ce
wolfSSL (formerly CyaSSL) before 3.6.8 allows remote attackers to cause a denial of service (resource consumption or tra
In wolfSSL before 5.5.1, malicious clients can cause a buffer overflow during a TLS 1.3 handshake. Rated high severity (
An issue was discovered in wolfSSL before 5.5.0. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita
wolfSSL 4.3.0 has mulmod code in wc_ecc_mulmod_ex in ecc.c that does not properly resist timing side-channel attacks. Ra
In wolfSSL 4.1.0 through 4.2.0c, there are missing sanity checks of memory accesses in parsing ASN.1 certificate data wh
An issue was discovered in wolfSSL before 4.5.0, when single precision is not employed. Rated high severity (CVSS 7.0).
wolfSSL before 4.5.0 mishandles TLS 1.3 server data in the WAIT_CERT_CR state, within SanityCheckTls13MsgReceived() in t
EUVD-2026-39578
GHSA-xpv9-p7vg-qhrc
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB