Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify target application using wolfSSL OPENSSL_EXTRA with partial-chain flag enabled
-
DeliveryCraft certificate chain terminating at attacker-controlled intermediate
-
ExploitInitiate or intercept TLS connection to victim application
-
ExecutionPresent malicious chain during TLS handshake
-
PersistTrigger wolfSSL_X509_verify_cert partial-chain fallback with untrusted terminal cert
-
ImpactCertificate validation bypassed, attacker impersonates trusted entity
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
|
| Exploitation Conditions | Two explicit conditions must be simultaneously true: (1) wolfSSL must be compiled with OPENSSL_EXTRA to enable the OpenSSL compatibility certificate-path-building API (wolfSSL_X509_verify_cert / X509_STORE); and (2) the application must explicitly call X509_STORE_set_flags with X509_V_FLAG_PARTIAL_CHAIN - this flag is not set by default. The CVSS 4.0 AT:P metric confirms a specific attack requirement applies. The attacker must additionally be in a position to present a crafted certificate chain to the victim (e.g., controlling the TLS server the application connects to, or performing MITM on the connection). Exploitation is limited by: the non-default OPENSSL_EXTRA compile-time build flag, the non-default X509_V_FLAG_PARTIAL_CHAIN runtime configuration, and the requirement for the attacker to be a TLS peer or interceptor. Default wolfSSL deployments not using the OpenSSL compatibility layer are not affected. |
| Impact | The CVSS 4.0 score of 6.0 (AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N) reflects a network-reachable integrity flaw with the AT:P (attack requirements present) metric confirming that a specific non-default condition - the X509_V_FLAG_PARTIAL_CHAIN flag - must be explicitly set by the application. The VI:H impact is significant because a successful bypass defeats certificate chain validation entirely. Confidentiality and availability are unaffected per the vector. No EPSS data was provided, so exploitation probability cannot be empirically quantified. The absence of a CISA KEV listing and the lack of any public proof-of-concept code indicate no confirmed or widespread exploitation at time of analysis. Real-world risk is moderate and scoped: only applications compiled with OPENSSL_EXTRA that also explicitly enable X509_V_FLAG_PARTIAL_CHAIN - a non-default, purposeful configuration choice typically used in cross-signing or certificate pinning scenarios - are exploitable. The PR:L metric in the vendor-supplied CVSS 4.0 vector may overstate privilege requirements; the attacker needs only to present a crafted TLS handshake and does not require privileges on the vulnerable system itself, though the non-default configuration requirement meaningfully limits exposure. |
| Exploit ScenarioDerived | An attacker operating a rogue TLS server or positioned for MITM constructs a certificate chain where the terminal certificate is an intermediate they generated and control, without registering it in the victim application's trust store. When the application connects and wolfSSL evaluates the chain with X509_V_FLAG_PARTIAL_CHAIN set, the pre-fix partial-chain fallback accepts the chain because some intermediate was temporarily loaded into the CertManager during path building, never verifying the terminal certificate against trusted entries. No public exploit code has been identified, but the bypass is mechanically straightforward given the detailed PR description and accompanying regression test. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 25, 2026
Certificate chain validation bypass in wolfSSL's OpenSSL compatibility layer allows a network attacker to present a chain terminating at an untrusted intermediate they control, which is accepted as valid when X509_V_FLAG_PARTIAL_CHAIN is enabled. The flaw (CWE-295) resided in wolfSSL_X509_verify_cert, where the partial-chain fallback confirmed only that some intermediate was temporarily loaded into the CertManager during path building - not that the terminal certificate was in the caller's actual trust store. No public exploit code exists and no CISA KEV listing is present, but successful exploitation defeats certificate validation entirely, enabling impersonation or MITM in affected configurations.
RemediationAI
Apply the upstream fix once it is included in an official wolfSSL release - monitor the wolfSSL security advisories page at https://www.wolfssl.com/docs/security-vulnerabilities/ for the patched tagged version, as the exact release version is not confirmed from the available data (only GitHub PR #10170 at https://github.com/wolfSSL/wolfssl/pull/10170 is available). As an immediate compensating control, audit all application code calling X509_STORE_set_flags with X509_V_FLAG_PARTIAL_CHAIN: if partial-chain verification is not strictly required, removing the flag eliminates the vulnerable code path with no trust-model side effects beyond restoring full-chain requirement. If partial-chain behavior is operationally necessary, ensure the trust store is populated exclusively with certificates the application intends to trust and that no untrusted intermediates are present in the store itself. Disabling the OPENSSL_EXTRA compile-time flag removes the affected API entirely but will break all other OpenSSL compatibility features and requires a library rebuild.
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 TLS/SSL library targeting embedded and IoT systems, providing an OpenSSL-compatible API when compiled with OPENSSL_EXTRA. The vulnerable code path is wolfSSL_X509_verify_cert in src/x509_str.c, which implements the X509_STORE and X509_STORE_CTX chain-building logic. CWE-295 (Improper Certificate Validation) is the root cause: the X509_V_FLAG_PARTIAL_CHAIN flag is intended to allow chain termination at a trusted intermediate rather than requiring a full path to a root CA. Pre-fix, the partial-chain fallback checked only that the added==1 condition was satisfied - meaning some intermediate had been temporarily injected into the CertManager during path building - rather than performing a DER-level comparison of the terminal certificate against the caller's pre-injection trust store snapshot. The fix introduces X509StoreCertIsTrusted(), which captures origTrustedSk (a snapshot of the trusted set before untrusted intermediates are injected) and DER-compares ctx->current_cert against it, closing the bypass. The CPE cpe:2.3:a:wolfssl:wolfssl:*:*:*:*:*:*:*:* indicates all wolfSSL versions are affected.
Know when OpenSSL 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:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Non-default dual requirement (OPENSSL_EXTRA build flag plus X509_V_FLAG_PARTIAL_CHAIN runtime flag) maps to AC:H; attacker needs no privileges on the target system to present a crafted certificate chain.
Primary rating from Vendor (wolfSSL).
CVSS VectorVendor: wolfSSL
DescriptionCVE.org
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.
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.
The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packe
In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Rated cri
The dtls1_reassemble_fragment function in d1_both.c in OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
The SSLv2 protocol, as used in OpenSSL before 1.0.1s and 1.0.2 before 1.0.2g and other products, requires a server to se
The ssl3_get_key_exchange function in s3_clnt.c in OpenSSL before 0.9.8zd, 1.0.0 before 1.0.0p, and 1.0.1 before 1.0.1k
In addition to the c_rehash shell command injection identified in CVE-2022-1292, further circumstances where the c_rehas
The TLS protocol 1.2 and earlier, when a DHE_EXPORT ciphersuite is enabled on a server but not on a client, does not pro
The SSL protocol 3.0, as used in OpenSSL through 1.0.1i and other products, uses nondeterministic CBC padding, which mak
The AES-NI implementation in OpenSSL before 1.0.1t and 1.0.2 before 1.0.2h does not consider memory allocation during a
The X509_verify_cert function in crypto/x509/x509_vfy.c in OpenSSL 1.0.1n, 1.0.1o, 1.0.2b, and 1.0.2c does not properly
A buffer overrun can be triggered in X.509 certificate verification, specifically in name constraint checking. Rated hig
EUVD-2026-39486
GHSA-mhq8-94h7-mrgx
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB