CVE-2026-6091

Partial-chain verification accepts untrusted intermediate as trust anchor

Published Jun 25, 2026 CVSS 4.0 · 6 Medium EPSS < 1% KEV · Not listed
Description
Partial-chain certificate verification may accept chains that terminate at a peer-supplied, untrusted intermediate certificate rather than a trusted anchor. An attacker could present a chain that ends at an intermediate they control and have it accepted as valid. This affects the OpenSSL compatibility certificate-path-building path (wolfSSL_X509_verify_cert / X509_STORE, OPENSSL_EXTRA) when the X509_V_FLAG_PARTIAL_CHAIN verify flag is enabled.

Analysis

AI-generated

Technical impact

Certificate path verification in wolfSSL may accept a chain that ends with a peer‑supplied intermediate certificate as a trusted anchor when the X509_V_FLAG_PARTIAL_CHAIN flag is enabled. This logic flaw allows an attacker to present a custom chain terminating in an intermediate they control, causing the library to treat the chain as valid. The resulting authentication bypass could enable Man‑in‑the‑Middle attacks, data tampering, or credential theft by allowing clients or servers to trust certificates that are not anchored to a known root.

Affected Systems

wolfSSL implementations that employ the OpenSSL compatibility layer for certificate path building, specifically the wolfSSL_X509_verify_cert function and X509_STORE, are impacted. The vulnerability arises when the X509_V_FLAG_PARTIAL_CHAIN option is set during verification. No specific product versions were listed, but any wolfSSL build that enables the partial‑chain flag remains vulnerable.

Risk and Exploitability

The CVSS score of 6 classifies the vulnerability as moderate. The exploit probability (EPSS) is currently unavailable and the issue is not featured in the CISA KEV catalog. An attacker must be able to supply a custom certificate chain to a client or server that has enabled the partial‑chain flag; once that flag is active, the attacker can construct a chain that ends with an intermediate they control, which is then accepted as a trust anchor, allowing the bypass of proper certificate validation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest version of wolfSSL that addresses the partial‑chain verification logic.
  • Discontinue the use of the X509_V_FLAG_PARTIAL_CHAIN flag in all TLS configurations unless absolutely required.
  • Configure TLS libraries to enforce that certificate chains must terminate at a trusted root and reject chains ending in untrusted intermediates.
  • Monitor TLS connections for custom chain anchors and audit logs for suspicious certificates.

Generated by OpenCVE AI on June 25, 2026 at 18:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Wolfssl
Wolfssl wolfssl
Vendors & Products Wolfssl
Wolfssl wolfssl
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description Partial-chain certificate verification may accept chains that terminate at a peer-supplied, untrusted intermediate certificate rather than a trusted anchor. An attacker could present a chain that ends at an intermediate they control and have it accepted as valid. This affects the OpenSSL compatibility certificate-path-building path (wolfSSL_X509_verify_cert / X509_STORE, OPENSSL_EXTRA) when the X509_V_FLAG_PARTIAL_CHAIN verify flag is enabled.
Title Partial-chain verification accepts untrusted intermediate as trust anchor
Weaknesses CWE-295
References
Metrics cvssV4_0

{'score': 6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-295

    Improper Certificate Validation

Sources

Status
PUBLISHED
Assigner
wolfSSL
Published
Updated
Jun 25, 2026, 5:58 PM
Reserved
Apr 10, 2026, 4:01 PM
Status
Analyzed
Published
Jun 25, 2026, 6:16 PM
Modified
Jun 26, 2026, 4:50 PM