CVE-2026-10098: wolfSSL OCSP Serial-Number Prefix-Match Certificate Validation Bypass
A flaw in wolfSSL's OCSP (Online Certificate Status Protocol) certificate revocation checking allows an attacker to cause the library to report incorrect revocation status for a certificate. Specifically, if an OCSP response contains status information for a certificate whose serial number is shorter and matches the beginning of another certificate's serial number (both issued by the same CA), wolfSSL could incorrectly report the wrong certificate's revocation status. This happens because the code compared serial numbers byte-by-byte without first checking that they were the same length. An attacker controlling an OCSP responder or intercepting OCSP traffic could exploit this to make a revoked certificate appear valid or vice versa.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 5.3 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Weaknesses (CWE)
- CWE-295
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-25 / 2026-06-27
NVD description (verbatim)
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.
2 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability resides in wolfSSL's OCSP_resp_find_status function, which performs certificate revocation status lookups by matching the CertID fields in OCSP SingleResponse structures against a target certificate. The flaw is a classic prefix-matching bug: the function compares serial-number bytes without enforcing length equality beforehand. When a SingleResponse's serial is a strict prefix of the target certificate's serial (e.g., target serial 0x0102030405, response serial 0x01020304), the byte comparison returns a match, causing the function to return the wrong certificate's revocation status. The fix enforces that both serial numbers must be identical in length before performing the byte comparison. This is a certificate validation bypass affecting the CertID matching logic (CWE-295: Improper Certificate Validation).
Business impact
Incorrect OCSP revocation status reporting can undermine trust in certificate validation, a foundational security control. Organizations relying on wolfSSL for TLS/SSL operations may unknowingly accept connections from certificates that should be revoked, or reject valid ones. The impact is most severe in environments where OCSP is the primary or sole revocation-checking mechanism. Affected deployments could suffer from compromised confidentiality of communications if a revoked certificate (potentially belonging to a malicious endpoint) is incorrectly validated as current.
Affected systems
wolfSSL versions prior to the fix are affected. The vulnerability applies to any application using wolfSSL's OCSP functionality, particularly those that validate certificates against an external OCSP responder. Embedded systems, IoT devices, and server applications using wolfSSL for certificate management are potential targets. Verify the exact patched version against the wolfSSL vendor advisory.
Exploitability
Exploitability is moderate. The attack requires either control of an OCSP responder or the ability to perform a man-in-the-middle attack on OCSP traffic to inject a crafted response with a serial number that is a prefix of the target. The attack does not require user interaction or elevated privileges, and the network is accessible from the internet if OCSP queries are made over public networks. However, the attacker must have prior knowledge of certificate serial numbers and access to a suitable OCSP endpoint or network path.
Remediation
Update wolfSSL to a version that includes the serial-length equality check in the OCSP CertID matching logic. Check the wolfSSL security advisory for the specific patched version. No workarounds are known; patching is the primary remediation. Organizations should also review their certificate validation policies to ensure OCSP is not the sole revocation mechanism, and consider enabling CRL (Certificate Revocation List) as a secondary check.
Patch guidance
Consult the wolfSSL project repository or official security advisory for the patched version number and release date. Apply patches promptly to all systems running wolfSSL, including embedded devices and production servers. Test thoroughly in a staging environment before production deployment, as OCSP changes can affect certificate validation timing and behavior. Verify that post-patch OCSP lookups correctly reject prefix-match certificates.
Detection guidance
Monitor OCSP response logs for unusual patterns, such as SingleResponse entries with serial numbers that are prefixes of your organization's certificate serials. Implement OCSP stapling to reduce reliance on real-time responder queries and gain better control over response validation. Use certificate pinning in critical applications to further reduce the risk of accepting incorrect revocation status. Audit wolfSSL version usage across your infrastructure and prioritize patch deployment based on exposure to untrusted OCSP responders.
Why prioritize this
Although scored MEDIUM (5.3), this vulnerability should be prioritized for prompt patching because it directly undermines a core security control—certificate revocation checking. The attack surface is network-accessible with no authentication required. Organizations that rely on OCSP for compliance or security policy should treat this as a near-term patch obligation. The simplicity of the fix and the fundamental nature of the flaw make rapid deployment feasible.
Risk score, explained
The CVSS 3.1 score of 5.3 reflects a network-accessible, low-complexity attack that requires no privileges or user interaction but results only in integrity impact (wrong revocation status reported). The attack does not directly cause confidentiality loss or availability impact; however, the integrity compromise can lead to downstream trust failures. The MEDIUM rating appropriately captures the seriousness of certificate validation flaws despite the narrow attack vector.
Frequently asked questions
How does the prefix-match flaw actually occur?
OCSP responses contain a list of SingleResponse items, each with a CertID that includes the target certificate's serial number. The vulnerable code compared serial numbers byte-by-byte without checking length first. If the response serial was shorter and its bytes matched the start of the lookup serial, the comparison would succeed and return the wrong certificate's status.
What should I do if I can't patch immediately?
Implement OCSP stapling (have your server fetch and cache the OCSP response) to reduce exposure to untrusted OCSP responders. Use certificate pinning in critical client applications. Enable CRL checking as a backup revocation mechanism. Segregate systems running vulnerable wolfSSL from untrusted networks where OCSP traffic could be intercepted.
Does this affect all OCSP operations in wolfSSL?
The vulnerability is specific to the OCSP_resp_find_status function's CertID matching logic. Any application using wolfSSL to validate certificates via OCSP is potentially affected, but only if an attacker can control or intercept the OCSP response.
Is there a way to detect if we've been exploited?
Direct detection is difficult because an incorrect OCSP response might be silently accepted. Look for anomalous certificate validation decisions in application logs, or review OCSP response timestamps and responder sources to detect spoofing. Regular security audits of certificate validation chains are recommended.
This analysis is provided for informational purposes to help security teams understand and prioritize vulnerability remediation. It does not constitute legal advice, professional risk assessment, or an audit. Patch information and vendor details should be verified against official sources before deployment. Organizations are responsible for assessing the applicability and impact of this vulnerability in their specific environment and for testing patches before production use. Source: NVD (public-domain), retrieved 2026-08-04. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-10592MEDIUMwolfSSL Wildcard Certificate Name-Constraint Bypass (Medium)
- CVE-2026-55964MEDIUMwolfSSL Certificate Validation Bypass
- CVE-2026-6091MEDIUMwolfSSL Partial-Chain Certificate Verification Bypass
- CVE-2026-6450MEDIUMWolfSSL CRL Critical Extension Bypass Vulnerability
- CVE-2026-11310HIGHwolfSSL X.509 Certificate Verification Bypass (OpenSSL Extra Mode)
- CVE-2026-11999HIGHwolfSSL X.509 Trust Chain Bypass in OpenSSL Compatibility Mode
- CVE-2026-55960HIGHwolfSSL Raw Public Key Bypass – Certificate Validation Vulnerability
- CVE-2026-6731HIGHX.509 Name Constraint Bypass in wolfSSL – CVSS 7.5 HIGH