GHSA-h4wh-367g-85gm
A vulnerability in wolfSSL's OpenSSL compatibility certificate verifier (wolfSSL_X509_verify_cert()) allows an attacker to bypass X.509 trust-chain validation. This affects only builds with --enable-opensslextra (OPENSSL_EXTRA) when applications validate certificates by calling X509_verify_cert() with caller-supplied untrusted intermediate certificates. The flaw causes untrusted intermediates to be treated as trust anchors, allowing acceptance of attacker-controlled certificates. Native wolfSSL TLS/DTLS usage and default TLS handshakes are not impacted. This issue affects certificate verification outside of TLS, such as S/MIME, code signing, and JWT validation, and requires manual or deferred peer verification with --enable-sessioncerts enabled.
AI Analysis
Technical Summary
The vulnerability in wolfSSL's X509_verify_cert() function arises from improper handling of caller-supplied untrusted intermediate certificates in builds compiled with --enable-opensslextra. The verifier temporarily loads these untrusted intermediates into the certificate manager but fails to remove them before checking against the trusted store. Consequently, an attacker can present a certificate chain that does not reach a legitimate trust anchor but is still accepted because the untrusted intermediate is incorrectly treated as a trust anchor. This bypass affects certificate verification independent of TLS and is not limited by key type or algorithm. The default wolfSSL TLS handshake is unaffected; only applications performing manual or deferred verification via this API with session certificates enabled are vulnerable.
Potential Impact
An attacker can cause the acceptance of a malicious certificate by bypassing the trust-chain validation, potentially undermining the security of certificate-based authentication and signature verification in affected applications. This can lead to acceptance of attacker-controlled certificates in contexts such as S/MIME, CMS, code or firmware signing, and JWT validation. Native wolfSSL TLS handshakes and default peer verification remain secure, limiting the impact to specific usage scenarios.
Mitigation Recommendations
No official patch or fix is currently confirmed. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should avoid using wolfSSL builds with --enable-opensslextra for certificate verification involving caller-supplied untrusted intermediates until a fix is available. Applications relying on manual or deferred peer verification with session certificates enabled should review their usage and consider alternative verification methods or disabling the vulnerable configuration. Monitor vendor advisories for updates and patches.
GHSA-h4wh-367g-85gm
Description
A vulnerability in wolfSSL's OpenSSL compatibility certificate verifier (wolfSSL_X509_verify_cert()) allows an attacker to bypass X.509 trust-chain validation. This affects only builds with --enable-opensslextra (OPENSSL_EXTRA) when applications validate certificates by calling X509_verify_cert() with caller-supplied untrusted intermediate certificates. The flaw causes untrusted intermediates to be treated as trust anchors, allowing acceptance of attacker-controlled certificates. Native wolfSSL TLS/DTLS usage and default TLS handshakes are not impacted. This issue affects certificate verification outside of TLS, such as S/MIME, code signing, and JWT validation, and requires manual or deferred peer verification with --enable-sessioncerts enabled.
CVSS v4.0
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in wolfSSL's X509_verify_cert() function arises from improper handling of caller-supplied untrusted intermediate certificates in builds compiled with --enable-opensslextra. The verifier temporarily loads these untrusted intermediates into the certificate manager but fails to remove them before checking against the trusted store. Consequently, an attacker can present a certificate chain that does not reach a legitimate trust anchor but is still accepted because the untrusted intermediate is incorrectly treated as a trust anchor. This bypass affects certificate verification independent of TLS and is not limited by key type or algorithm. The default wolfSSL TLS handshake is unaffected; only applications performing manual or deferred verification via this API with session certificates enabled are vulnerable.
Potential Impact
An attacker can cause the acceptance of a malicious certificate by bypassing the trust-chain validation, potentially undermining the security of certificate-based authentication and signature verification in affected applications. This can lead to acceptance of attacker-controlled certificates in contexts such as S/MIME, CMS, code or firmware signing, and JWT validation. Native wolfSSL TLS handshakes and default peer verification remain secure, limiting the impact to specific usage scenarios.
Mitigation Recommendations
No official patch or fix is currently confirmed. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should avoid using wolfSSL builds with --enable-opensslextra for certificate verification involving caller-supplied untrusted intermediates until a fix is available. Applications relying on manual or deferred peer verification with session certificates enabled should review their usage and consider alternative verification methods or disabling the vulnerable configuration. Monitor vendor advisories for updates and patches.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-h4wh-367g-85gm
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-11310"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a3ef7e927e9c79719032dca
Added to database: 06/26/2026, 22:06:33 UTC
Last enriched: 06/26/2026, 22:47:02 UTC
Last updated: 06/26/2026, 23:51:26 UTC
Views: 2
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.