Description
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.
Published: 2026-09-27
Score: 8.3 High
EPSS: < 1% Very Low
KEV: No
Impact: Authentication bypass leading to MITM
Action: Apply Patch
AI Analysis

Impact

MatchTrustedPeer ignores the public key used, leading to forged CA clones that pass verification. The flaw allows a malicious TLS server that knows the CA certificates a client will trust to authenticate itself as a trusted peer, thereby enabling a man‑in‑the‑middle attack or unauthorized mutual authentication. This effectively bypasses peer authentication and undermines the confidentiality and integrity of the connection. The weakness corresponds to CWE‑295, certificate validation bypass.

Affected Systems

Systems built with wolfSSL that enable the WOLFSSL_TRUST_PEER_CERT macro and load CA certificates via wolfSSL_CTX_trust_peer_cert() or wolfSSL_trust_peer_cert() are affected. In addition, any build that also defines OPENSSL_COMPATIBLE_DEFAULTS expands the vulnerability to all CA certificate loading APIs. Autoconf builds that generate these configurations are common in web servers, proxy servers, database servers, and network services such as nginx, haproxy, stunnel, wpas, Apache HTTPD, hitch, Bind, rsyslog, ffmpeg and many Linux distributions. Users of these builds that rely on trusted peer certificate verification for secure communication are at risk.

Risk and Exploitability

The CVSS base score is 8.3, indicating high severity. EPSS is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting it may not yet have seen widespread exploitation. However, the mechanism could be used by an attacker who can learn the client’s trusted CA set through reconnaissance. The attack is likely remote and requires knowledge of the certificates being loaded, but it can be carried out over any TLS connection where peer verification is expected. Organizations running wolfSSL‑enabled services should treat this as a critical threat requiring immediate action.

Generated by OpenCVE AI on September 27, 2026 at 10:24 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest wolfSSL release which includes the MatchTrustedPeer fix.
  • Apply the patch from commit 22bcd51d553eaac1de37bee91fdac80cc47961e1 if upgrading is not possible.
  • Reconfigure the build with the option --disable-openssl-compatible-defaults and avoid using the wolfSSL_CTX_trust_peer_cert() / wolfSSL_trust_peer_cert() APIs to load CA certificates.

Generated by OpenCVE AI on September 27, 2026 at 10:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 02 Oct 2026 19:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:wolfssl:wolfssl:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N'}


Sun, 27 Sep 2026 11:00:00 +0000

Type Values Removed Values Added
First Time appeared Wolfssl
Wolfssl wolfssl
Vendors & Products Wolfssl
Wolfssl wolfssl

Sun, 27 Sep 2026 09:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Trusted peer certificate match ignores public key, allowing forged CA clones
Weaknesses CWE-295
References
Metrics cvssV4_0

{'score': 8.3, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: wolfSSL

Published:

Updated: 2026-09-29T16:41:22.187Z

Reserved: 2026-09-17T16:53:31.280Z

Link: CVE-2026-93302

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-09-27T10:16:59.417

Modified: 2026-10-02T18:57:08.567

Link: CVE-2026-93302

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-27T10:45:06Z

Weaknesses
  • CWE-295

    Improper Certificate Validation