Skip to main content

wolfSSL EUVDEUVD-2026-39486

| CVE-2026-6091 MEDIUM
Improper Certificate Validation (CWE-295)
2026-06-25 wolfSSL GHSA-mhq8-94h7-mrgx
6.0
CVSS 4.0 · Vendor: wolfSSL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify target application using wolfSSL OPENSSL_EXTRA with partial-chain flag enabled
  2. Delivery
    Craft certificate chain terminating at attacker-controlled intermediate
  3. Exploit
    Initiate or intercept TLS connection to victim application
  4. Execution
    Present malicious chain during TLS handshake
  5. Persist
    Trigger wolfSSL_X509_verify_cert partial-chain fallback with untrusted terminal cert
  6. Impact
    Certificate 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

wolfSSL 5.7.4 ≤5.9.1

Affected Packages

euvd wolfssl no fix

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

Vendor (wolfSSL) PRIMARY 6.0 MEDIUM
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
vuln.today AI 5.9 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (wolfSSL).

CVSS VectorVendor: wolfSSL

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Low
embedded/IoT TLS library, niche footprint compared to OpenSSL
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2014-0160 HIGH POC
7.5 Apr 07

The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packe

CVE-2021-3711 CRITICAL POC
9.8 Aug 24

In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Rated cri

CVE-2014-0195 MEDIUM POC
6.8 Jun 05

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

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2016-0800 MEDIUM POC
5.9 Mar 01

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

CVE-2015-0204 MEDIUM POC
4.3 Jan 09

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

CVE-2022-2068 HIGH
7.3 Jun 21

In addition to the c_rehash shell command injection identified in CVE-2022-1292, further circumstances where the c_rehas

CVE-2015-4000 LOW POC
3.7 May 21

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

CVE-2014-3566 LOW POC
3.4 Oct 15

The SSL protocol 3.0, as used in OpenSSL through 1.0.1i and other products, uses nondeterministic CBC padding, which mak

CVE-2016-2107 MEDIUM POC
5.9 May 05

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

CVE-2015-1793 MEDIUM POC
6.5 Jul 09

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

CVE-2022-3602 HIGH
7.5 Nov 01

A buffer overrun can be triggered in X.509 certificate verification, specifically in name constraint checking. Rated hig

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy