CVE-2026-10098

OCSP CertID serial-number length-confusion in wolfSSL_OCSP_resp_find_status

Published Jun 25, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability is a serial‑number length confusion in the OCSP routine wolfSSL_OCSP_resp_find_status. A single OCSP response whose serial number is a prefix of the target certificate’s serial can be accepted as the revocation status of that certificate. This allows a wrong revocation state to be reported, enabling an attacker to make a revoked or untrusted certificate appear valid or, conversely, make a valid certificate appear revoked.

Affected Systems

The flaw affects the wolfSSL library, specifically any release that implements wolfSSL_OCSP_resp_find_status and has not applied the patch from pull request 10554. Applications and services that rely on wolfSSL for OCSP revocation checking are thus potentially vulnerable, regardless of the specific wolfSSL version unless the fix is included.

Risk and Exploitability

With a CVSS base score of 6.3 the flaw is assessed as moderately severe. The exploit does not require local privilege, but can be carried out remotely by supplying a crafted OCSP response to a vulnerable application. The EPSS score is not published, and the vulnerability is not in the CISA KEV list, indicating no publicly known exploits at this time.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade wolfSSL to a version that incorporates the fix from pull request 10554.
  • If an upgrade is not immediately possible, disable OCSP revocation checks for impacted components or replace OCSP with another revocation mechanism.
  • Implement application-level safeguards that verify the length of the serial number matches exactly before accepting any OCSP reply, preventing prefix matches.

Generated by OpenCVE AI on June 25, 2026 at 22:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Wolfssl
Wolfssl wolfssl
Vendors & Products Wolfssl
Wolfssl wolfssl
Type Values Removed Values Added
Description 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.
Title OCSP CertID serial-number length-confusion in wolfSSL_OCSP_resp_find_status
Weaknesses CWE-295
References
Metrics cvssV4_0

{'score': 6.3, 'vector': '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'}

Weaknesses
  • CWE-295

    Improper Certificate Validation

Sources

Status
PUBLISHED
Assigner
wolfSSL
Published
Updated
Jun 26, 2026, 10:34 AM
Reserved
May 29, 2026, 3:03 PM
Status
Analyzed
Published
Jun 25, 2026, 10:16 PM
Modified
Jun 27, 2026, 8:01 PM