Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLearn victim's loaded trusted-peer/CA cert
-
DeliveryForge CA clone with attacker key, copied identity
-
ExploitPresent clone during (D)TLS handshake
-
ExecutionMatchTrustedPeer skips public-key check
-
PersistHandshake completes, peer authenticated
-
ImpactMan-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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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.
Primary rating from Vendor (wolfSSL).
CVSS VectorVendor: wolfSSL
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.
Articles & Coverage 2
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
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.
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
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
wolfSSL prior to version 3.12.2 provides a weak Bleichenbacher oracle when any TLS cipher suite using RSA key exchange i
A specially crafted x509 certificate can cause a single out of bounds byte overwrite in wolfSSL through 3.10.2 resulting
Authentication bypass in wolfSSL TLS clients built with Raw Public Key (RPK) support allows a malicious or on-path serve
Certificate forgery in the wolfSSL client (versions 5.7.2 through 5.9.2) lets a remote attacker who already holds any ce
wolfSSL (formerly CyaSSL) before 3.6.8 allows remote attackers to cause a denial of service (resource consumption or tra
In wolfSSL before 5.5.1, malicious clients can cause a buffer overflow during a TLS 1.3 handshake. Rated high severity (
An issue was discovered in wolfSSL before 5.5.0. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita
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
In wolfSSL 4.1.0 through 4.2.0c, there are missing sanity checks of memory accesses in parsing ASN.1 certificate data wh
An issue was discovered in wolfSSL before 4.5.0, when single precision is not employed. Rated high severity (CVSS 7.0).
wolfSSL before 4.5.0 mishandles TLS 1.3 server data in the WAIT_CERT_CR state, within SanityCheckTls13MsgReceived() in t
wolfSSL (formerly CyaSSL) before 3.6.8 does not properly handle faults associated with the Chinese Remainder Theorem (CR
EUVD-2026-87910
GHSA-22fm-4q7r-f7w4
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB