MatchTrustedPeer ignores the public key used, leading to forged CA clones passing verification. (CVE-2026-93302)
CVE-2026-93302 is a vulnerability in wolfSSL where the MatchTrustedPeer function ignores the public key, allowing forged CA clones to pass verification. This affects builds that enable the WOLFSSL_TRUST_PEER_CERT macro and load CA certificates via wolfSSL_CTX_trust_peer_cert() or wolfSSL_trust_peer_cert(). When OPENSSL_COMPATIBLE_DEFAULTS is defined, the issue affects all CA certificate loading. This flaw allows a malicious (D)TLS server or client to bypass authentication if they know which CA certificates are trusted. The vulnerability impacts mutual authentication scenarios as well. Mitigation involves updating wolfSSL to the latest version, applying a fix patch, or disabling OpenSSL compatible defaults and avoiding the affected APIs for loading CA certificates.
AI Analysis
Technical Summary
The vulnerability arises because the MatchTrustedPeer function in wolfSSL ignores the public key during certificate verification, enabling attackers to create forged CA clones that pass verification checks. This affects any build enabling the WOLFSSL_TRUST_PEER_CERT macro and loading CA certificates with wolfSSL_CTX_trust_peer_cert() or wolfSSL_trust_peer_cert(). If OPENSSL_COMPATIBLE_DEFAULTS is also defined, the affected scope expands to all CA certificate loading. The attacker must know the trusted CA certificates loaded by the peer to exploit this flaw. This allows a malicious (D)TLS server or client to bypass authentication, including in mutual authentication scenarios. The vulnerability is relevant for autoconf builds such as nginx, haproxy, stunnel, wpas, apache httpd, hitch, bind, rsyslog, ffmpeg, and various distributions. Users should update to the latest wolfSSL version, apply the patch, or disable OpenSSL compatible defaults and avoid using the affected APIs to mitigate the issue.
Potential Impact
An attacker who knows the trusted CA certificates loaded by a peer can create forged CA clones that bypass certificate verification, allowing them to impersonate trusted servers or clients in (D)TLS connections. This compromises the integrity of authentication and can lead to unauthorized access or man-in-the-middle attacks. The impact is significant in environments relying on mutual authentication or where the trusted CA certificates are known to the attacker.
Mitigation Recommendations
Users should update to the latest wolfSSL version that includes the fix for this vulnerability or apply the official patch if available. Alternatively, users can mitigate the issue by configuring wolfSSL with the --disable-openssl-compatible-defaults flag and avoiding loading CA certificates using wolfSSL_CTX_trust_peer_cert() or wolfSSL_trust_peer_cert(). These mitigations prevent the vulnerability from being exploitable. Patch status is not explicitly confirmed in the provided data; users should consult the vendor advisory for the latest remediation guidance.
MatchTrustedPeer ignores the public key used, leading to forged CA clones passing verification. (CVE-2026-93302)
Description
CVE-2026-93302 is a vulnerability in wolfSSL where the MatchTrustedPeer function ignores the public key, allowing forged CA clones to pass verification. This affects builds that enable the WOLFSSL_TRUST_PEER_CERT macro and load CA certificates via wolfSSL_CTX_trust_peer_cert() or wolfSSL_trust_peer_cert(). When OPENSSL_COMPATIBLE_DEFAULTS is defined, the issue affects all CA certificate loading. This flaw allows a malicious (D)TLS server or client to bypass authentication if they know which CA certificates are trusted. The vulnerability impacts mutual authentication scenarios as well. Mitigation involves updating wolfSSL to the latest version, applying a fix patch, or disabling OpenSSL compatible defaults and avoiding the affected APIs for loading CA certificates.
CVSS v3.1
Score 8.2high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because the MatchTrustedPeer function in wolfSSL ignores the public key during certificate verification, enabling attackers to create forged CA clones that pass verification checks. This affects any build enabling the WOLFSSL_TRUST_PEER_CERT macro and loading CA certificates with wolfSSL_CTX_trust_peer_cert() or wolfSSL_trust_peer_cert(). If OPENSSL_COMPATIBLE_DEFAULTS is also defined, the affected scope expands to all CA certificate loading. The attacker must know the trusted CA certificates loaded by the peer to exploit this flaw. This allows a malicious (D)TLS server or client to bypass authentication, including in mutual authentication scenarios. The vulnerability is relevant for autoconf builds such as nginx, haproxy, stunnel, wpas, apache httpd, hitch, bind, rsyslog, ffmpeg, and various distributions. Users should update to the latest wolfSSL version, apply the patch, or disable OpenSSL compatible defaults and avoid using the affected APIs to mitigate the issue.
Potential Impact
An attacker who knows the trusted CA certificates loaded by a peer can create forged CA clones that bypass certificate verification, allowing them to impersonate trusted servers or clients in (D)TLS connections. This compromises the integrity of authentication and can lead to unauthorized access or man-in-the-middle attacks. The impact is significant in environments relying on mutual authentication or where the trusted CA certificates are known to the attacker.
Mitigation Recommendations
Users should update to the latest wolfSSL version that includes the fix for this vulnerability or apply the official patch if available. Alternatively, users can mitigate the issue by configuring wolfSSL with the --disable-openssl-compatible-defaults flag and avoiding loading CA certificates using wolfSSL_CTX_trust_peer_cert() or wolfSSL_trust_peer_cert(). These mitigations prevent the vulnerability from being exploitable. Patch status is not explicitly confirmed in the provided data; users should consult the vendor advisory for the latest remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-22fm-4q7r-f7w4
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-93302"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6ac139bea43b0b3b89d69d59
Added to database: 10/03/2026, 17:22:06 UTC
Last enriched: 10/03/2026, 17:43:48 UTC
Last updated: 10/03/2026, 21:11:45 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.