Skip to main content

wolfSSL EUVDEUVD-2026-87910

| CVE-2026-93302 HIGH
Improper Certificate Validation (CWE-295)
2026-09-27 wolfSSL GHSA-22fm-4q7r-f7w4
8.3
CVSS 4.0 · Vendor: wolfSSL
View

Attack ChainAIDerived

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

  1. Access
    Learn victim's loaded trusted-peer/CA cert
  2. Delivery
    Forge CA clone with attacker key, copied identity
  3. Exploit
    Present clone during (D)TLS handshake
  4. Execution
    MatchTrustedPeer skips public-key check
  5. Persist
    Handshake completes, peer authenticated
  6. Impact
    Man-in-the-middle intercepts/alters TLS traffic

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
Exploitation Conditions

Requires a wolfSSL build compiled with the WOLFSSL_TRUST_PEER_CERT macro AND the application loading CA/trusted-peer certificates via wolfSSL_CTX_trust_peer_cert() or wolfSSL_trust_peer_cert(); when OPENSSL_COMPATIBLE_DEFAULTS is also defined the exposure widens to ALL CA-certificate loading. Both macros are set by default autoconf/distro builds (nginx, haproxy, stunnel, wpa_supplicant, apache httpd, hitch, bind, rsyslog, ffmpeg, --enable-all). The key limiting factor (CVSS AT:P) is that the attacker must know which specific certificates the victim loaded in order to forge a matching clone; exploitation is over (D)TLS where the loaded CAs are discoverable. Mitigations: update to the latest wolfSSL / apply the fix, or build with --disable-openssl-compatible-defaults and avoid loading CAs through the trust_peer_cert APIs.

Impact

This is a genuine TLS peer-authentication bypass (CWE-295) in wolfSSL's trusted-peer certificate matching. The provided CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:N, base 8.3) correctly reflects a remote, unauthenticated, network-reachable flaw with high integrity impact, but with an attack requirement (AT:P): the attacker must know which specific CA/trusted-peer certificates the victim loaded. No EPSS score, no CISA KEV entry, and no SSVC decision data were provided, and the only reference is the fix commit - so there is no public exploit identified at time of analysis. The vendor's VC:L (low confidentiality) appears understated: a successful trusted-peer clone lets a malicious (D)TLS server impersonate a legitimate endpoint, enabling full man-in-the-middle interception, which is closer to high confidentiality AND high integrity. The real-world priority is moderate rather than urgent: exploitation is bounded by the AT:P precondition (attacker knowledge of the loaded certs) plus the requirement that the build enables WOLFSSL_TRUST_PEER_CERT (and, for the wider CA-loading exposure, OPENSSL_COMPATIBLE_DEFAULTS). Both are set by default autoconf/distro builds, which raises exposure meaningfully. No EPSS/KEV to corroborate active use, so treat as a patch-soon authentication-integrity defect rather than an emergency.

Exploit ScenarioDerived

An attacker who knows which CA or trusted-peer certificate a wolfSSL client accepts crafts a forged 'CA clone' certificate carrying the same subject/issuer identity and copied signature bytes but an attacker-controlled key pair. Because MatchTrustedPeer never validated the public key, the malicious (D)TLS server presents this clone and the client completes the handshake, allowing full man-in-the-middle interception; the same flaw breaks mutual authentication when the server-side trusted peers are known. No public exploit code was provided, only the vendor fix commit.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) No patch listed yet 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 27, 2026

wolfSSL builds that enable the WOLFSSL_TRUST_PEER_CERT macro can be induced to accept a forged clone of a trusted-peer CA, letting a malicious (D)TLS server bypass peer authentication; when OPENSSL_COMPATIBLE_DEFAULTS is also defined the flaw spreads to all CA certificate loading. The vulnerable path is reached through wolfSSL_CTX_trust_peer_cert() or wolfSSL_trust_peer_cert(), APIs used by autoconf/distro builds of nginx, haproxy, stunnel, wpa_supplicant, apache httpd, hitch, bind, rsyslog and ffmpeg, and exploitation is unauthenticated over the network (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N). The practical barrier is that the attacker must already know which certificates the victim loaded before a matching clone can be forged (assessment- and vendor-cited AT:P), so this is a targeted authentication bypass rather than a mass-exploitable one; patches exist upstream but no public exploit code has been identified at time of analysis.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - apply commit 22bcd51d553eaac1de37bee91fdac80cc47961e1 (https://github.com/wolfSSL/wolfssl/commit/22bcd51d553eaac1de37bee91fdac80cc47961e1), which replaces the metadata-and-signature trusted-peer match with a whole-certificate DER hash identity check, or update to the latest wolfSSL version as advised by the vendor. Where updating immediately is not possible, rebuild with the configure flag --disable-openssl-compatible-defaults, which removes the broadened CA-loading exposure but also turns off other OpenSSL-compatible default behaviors and may change TLS/API behavior in dependent applications, so re-test after the change. Additionally, stop loading CA certificates through wolfSSL_CTX_trust_peer_cert() / wolfSSL_trust_peer_cert() where an alternative trust mechanism (for example a standard CA store) can be used; this directly removes the vulnerable code path but requires reworking certificate-pinning logic and migrating existing trust anchors. Note the attacker's prerequisite of knowing which CA certificates the victim has loaded, so environments where trust anchors are publicly discoverable or guessable - service configurations with stable, well-known issuing CAs - should be prioritized for patching. Verify the deployed build actually defines WOLFSSL_TRUST_PEER_CERT (with or without OPENSSL_COMPATIBLE_DEFAULTS), since builds without that macro are not exposed to this specific flaw.

Affected VersionsENISA

wolfSSL 5.3.0 ≤5.9.2

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

The defect is a certificate-validation failure (CWE-295) in wolfSSL's trusted-peer certificate matching. wolfSSL lets an application pin an explicit peer CA through wolfSSL_CTX_trust_peer_cert() / wolfSSL_trust_peer_cert(), which store entries in the certificate manager's trusted-peer table (tpTable). In the affected code, the table lookup was keyed on partial metadata - the subject hash, the issuer hash (unless WOLFSSL_NO_ISSUERHASH_TDPEER), and the Subject Key Identifier when present - and the final MatchTrustedPeer() check compared only the certificate's signature fields, never binding the decision to the certificate's actual public key or whole-certificate bytes. As the upstream diff shows, the fix deletes MatchTrustedPeer() entirely and switches both GetTrustedPeer() and AddTrustedPeer() to compute a full-digest identity over the DER-encoded certificate with CalcHashId(), indexing and comparing the table by that whole-certificate hash (certHash / KEYID_SIZE). In ProcessPeerCerts() the previous conditional branch that fell through when the trusted-peer match failed is also removed. Because the old match did not cover the key material, an attacker who knows which CA certificates the victim loaded can present a certificate whose subject/issuer/SKID and signature metadata align with a trusted entry while carrying different key material, and authentication succeeds. The exposure is gated by build configuration: WOLFSSL_TRUST_PEER_CERT must be enabled and CAs must be loaded through the trust-peer APIs; defining OPENSSL_COMPATIBLE_DEFAULTS (as autoconf builds such as nginx, haproxy, stunnel, wpa_supplicant, apache httpd, hitch, bind, rsyslog, ffmpeg and --enable-all do) widens the affected surface to all CA certificate loading. The CPE string cpe:2.3:a:wolfssl:wolfssl:*:*:*:*:*:*:*:* indicates the vendor treats the whole wolfSSL product line as affected pending version pinning. Mutual-authentication deployments are impacted as well when the client knows which CAs the server has loaded, since both directions rely on the same trusted-peer matching logic.

Know when Wolfssl 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 8.3 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 7.4 HIGH

Network-reachable and unauthenticated, but AC:H because the attacker must know the victim's loaded trusted-peer certs (AT:P); successful clone yields full MITM, so C:H/I:H and A:N.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/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
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

MatchTrustedPeer ignores the public key used, leading to forged CA clones passing verification. Affected builds are any that enable the macro WOLFSSL_TRUST_PEER_CERT and load CA certificates with wolfSSL_CTX_trust_peer_cert() or wolfSSL_trust_peer_cert(). The peer must know the certificates being loaded to either of those APIs to take advantage of the issue. When OPENSSL_COMPATIBLE_DEFAULTS is also defined this widens the affected API to include all CA certificate loading. Both macros are defined when using autoconf builds such as (nginx, haproxy, stunnel, wpas, apache httpd, hitch, bind, rsyslog, ffmpeg, all, distro). When the certificate is listed as a trusted peer certificate the issue previously allowed for a malicious (D)TLS server to bypass authentication once knowing which CA’s the client would accept. This also affects mutual authentication cases where the client knows which CA’s the server has loaded. If building with any of these configurations and using (D)TLS where the loaded CA’s could be known and authentication of the peer is desired, users should either: update to the latest wolfSSL version, apply the fix patch, or use the configure flag --disable-openssl-compatible-defaults and not load CA’s with wolfSSL_CTX_trust_peer_cert() or wolfSSL_trust_peer_cert() to mitigate the issue.

Technical POC Analysis

Bug class: CWE-295, Improper Certificate Validation.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

wolfSSL, a cryptographic library embedded in widely deployed services such as nginx, HAProxy, Apache httpd, and wpa_supplicant, has a high-severity authentication bypass (CVE-2026-93302) that can let a malicious TLS server impersonate a trusted peer when specific build options are enabled. Organizations relying on those services for secure communications could face data exposure or man-in-the-middle attacks, though exploitation requires targeted knowledge of the victim's loaded certificates. Leadership should prioritize remediation because the flaw affects critical infrastructure components and no vendor-released patch is identified at time of analysis.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; disable or rebuild without WOLFSSL_TRUST_PEER_CERT and OPENSSL_COMPATIBLE_DEFAULTS where feasible, avoid wolfSSL_CTX_trust_peer_cert() and wolfSSL_trust_peer_cert() APIs, enforce strict peer certificate validation and certificate pinning, segment affected services, monitor for unexpected TLS peer certificate acceptance, and validate/deploy upstream patches if they become available.

Threat Intelligence Overview

EPSS Score
0.4%
Top 72% exploitable
Prevalence
Medium
wolfSSL is a widely-embedded TLS library but far less ubiquitous than OpenSSL
Social Media
2
Sightings
Data Quality
6 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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2017-13099 HIGH POC
7.5 Dec 13

wolfSSL prior to version 3.12.2 provides a weak Bleichenbacher oracle when any TLS cipher suite using RSA key exchange i

CVE-2017-2800 CRITICAL POC
9.8 May 24

A specially crafted x509 certificate can cause a single out of bounds byte overwrite in wolfSSL through 3.10.2 resulting

CVE-2026-89136 HIGH POC
8.3 Sep 27

Authentication bypass in wolfSSL TLS clients built with Raw Public Key (RPK) support allows a malicious or on-path serve

CVE-2026-89102 HIGH POC
8.3 Sep 27

Certificate forgery in the wolfSSL client (versions 5.7.2 through 5.9.2) lets a remote attacker who already holds any ce

CVE-2015-6925 HIGH POC
7.5 Jan 22

wolfSSL (formerly CyaSSL) before 3.6.8 allows remote attackers to cause a denial of service (resource consumption or tra

CVE-2022-39173 HIGH POC
7.5 Sep 29

In wolfSSL before 5.5.1, malicious clients can cause a buffer overflow during a TLS 1.3 handshake. Rated high severity (

CVE-2022-38152 HIGH POC
7.5 Aug 31

An issue was discovered in wolfSSL before 5.5.0. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita

CVE-2020-11713 HIGH POC
7.5 Apr 12

wolfSSL 4.3.0 has mulmod code in wc_ecc_mulmod_ex in ecc.c that does not properly resist timing side-channel attacks. Ra

CVE-2019-18840 HIGH POC
7.5 Nov 09

In wolfSSL 4.1.0 through 4.2.0c, there are missing sanity checks of memory accesses in parsing ASN.1 certificate data wh

CVE-2020-15309 HIGH POC
7.0 Aug 21

An issue was discovered in wolfSSL before 4.5.0, when single precision is not employed. Rated high severity (CVSS 7.0).

CVE-2020-24613 MEDIUM POC
6.8 Aug 24

wolfSSL before 4.5.0 mishandles TLS 1.3 server data in the WAIT_CERT_CR state, within SanityCheckTls13MsgReceived() in t

CVE-2015-7744 MEDIUM POC
5.9 Jan 22

wolfSSL (formerly CyaSSL) before 3.6.8 does not properly handle faults associated with the Chinese Remainder Theorem (CR

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