Under WOLFSSL_SMALL_CERT_VERIFY, ProcessPeerCertParse() runs the certificate signature check separately from the parse to keep peak memory down,… (CVE-2026-94418)
CVE-2026-94418 is a vulnerability in wolfSSL when built with WOLFSSL_SMALL_CERT_VERIFY enabled. The certificate signature check is separated from parsing, causing signature verification errors to be hidden if parsing fails. This inversion of validation order allows an attacker to use a self-made certificate with manipulated validity dates and signatures to bypass signature checks if the application uses a verify callback that overrides date errors. The vulnerability affects TLS 1.2, TLS 1.3, and DTLS in both directions. It requires specific build options and application verify callback behavior to be exploitable.
AI Analysis
Technical Summary
Under the WOLFSSL_SMALL_CERT_VERIFY build option, wolfSSL's ProcessPeerCertParse() function performs certificate signature verification separately from parsing to reduce peak memory usage. However, it merges the signature verification result back only if parsing succeeds, causing signature verification errors to be suppressed if parsing fails. Since validity-date and other certificate checks occur only after signature confirmation, this inversion breaks the intended precedence that allows date errors to override signature errors. An attacker can exploit this by presenting a self-signed certificate with the expected subject name, the trusted CA's subject as issuer, arbitrary signature bytes, a validity window in the past, and their own key pair. The application must install a verify callback that returns success for date errors to trigger the vulnerability. Without such a callback, the handshake fails correctly. The vulnerability affects wolfSSL builds with WOLFSSL_SMALL_CERT_VERIFY enabled, which is off by default and only reachable via specific low-resource build options. TLS 1.2, TLS 1.3, and DTLS are affected in both client and server directions. If a forged certificate is cached, the context or process must be restarted to clear it.
Potential Impact
An attacker can bypass certificate signature verification by exploiting the inversion of signature and parse error handling in wolfSSL when WOLFSSL_SMALL_CERT_VERIFY is enabled and a verify callback overrides date errors. This allows the attacker to impersonate a trusted CA or entity using a self-made certificate without needing the real CA's private key or compromising the PKI. The vulnerability impacts the integrity of TLS and DTLS connections, potentially allowing man-in-the-middle or impersonation attacks. However, the vulnerability requires specific build configurations and application-level verify callback behavior, limiting its exposure.
Mitigation Recommendations
This vulnerability only affects wolfSSL builds with WOLFSSL_SMALL_CERT_VERIFY enabled, which is off by default and not enabled by default in common build presets. Applications should avoid enabling WOLFSSL_SMALL_CERT_VERIFY unless necessary. Additionally, applications should not use verify callbacks that override date errors by returning success for ASN_BEFORE_DATE_E or ASN_AFTER_DATE_E. If a deployment is exposed and a forged certificate is cached, restarting the wolfSSL context or process clears the cache. No official patch or fix is indicated in the provided data; patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Under WOLFSSL_SMALL_CERT_VERIFY, ProcessPeerCertParse() runs the certificate signature check separately from the parse to keep peak memory down,… (CVE-2026-94418)
Description
CVE-2026-94418 is a vulnerability in wolfSSL when built with WOLFSSL_SMALL_CERT_VERIFY enabled. The certificate signature check is separated from parsing, causing signature verification errors to be hidden if parsing fails. This inversion of validation order allows an attacker to use a self-made certificate with manipulated validity dates and signatures to bypass signature checks if the application uses a verify callback that overrides date errors. The vulnerability affects TLS 1.2, TLS 1.3, and DTLS in both directions. It requires specific build options and application verify callback behavior to be exploitable.
CVSS v3.1
Score 7.5high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Under the WOLFSSL_SMALL_CERT_VERIFY build option, wolfSSL's ProcessPeerCertParse() function performs certificate signature verification separately from parsing to reduce peak memory usage. However, it merges the signature verification result back only if parsing succeeds, causing signature verification errors to be suppressed if parsing fails. Since validity-date and other certificate checks occur only after signature confirmation, this inversion breaks the intended precedence that allows date errors to override signature errors. An attacker can exploit this by presenting a self-signed certificate with the expected subject name, the trusted CA's subject as issuer, arbitrary signature bytes, a validity window in the past, and their own key pair. The application must install a verify callback that returns success for date errors to trigger the vulnerability. Without such a callback, the handshake fails correctly. The vulnerability affects wolfSSL builds with WOLFSSL_SMALL_CERT_VERIFY enabled, which is off by default and only reachable via specific low-resource build options. TLS 1.2, TLS 1.3, and DTLS are affected in both client and server directions. If a forged certificate is cached, the context or process must be restarted to clear it.
Potential Impact
An attacker can bypass certificate signature verification by exploiting the inversion of signature and parse error handling in wolfSSL when WOLFSSL_SMALL_CERT_VERIFY is enabled and a verify callback overrides date errors. This allows the attacker to impersonate a trusted CA or entity using a self-made certificate without needing the real CA's private key or compromising the PKI. The vulnerability impacts the integrity of TLS and DTLS connections, potentially allowing man-in-the-middle or impersonation attacks. However, the vulnerability requires specific build configurations and application-level verify callback behavior, limiting its exposure.
Mitigation Recommendations
This vulnerability only affects wolfSSL builds with WOLFSSL_SMALL_CERT_VERIFY enabled, which is off by default and not enabled by default in common build presets. Applications should avoid enabling WOLFSSL_SMALL_CERT_VERIFY unless necessary. Additionally, applications should not use verify callbacks that override date errors by returning success for ASN_BEFORE_DATE_E or ASN_AFTER_DATE_E. If a deployment is exposed and a forged certificate is cached, restarting the wolfSSL context or process clears the cache. No official patch or fix is indicated in the provided data; patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-q4rg-xp99-jj6q
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-94418"]
- Database Specific Severity
- LOW
- Cvss Version
- 3.1
Threat ID: 6ac139bea43b0b3b89d69d56
Added to database: 10/03/2026, 17:22:06 UTC
Last enriched: 10/03/2026, 17:43:34 UTC
Last updated: 10/04/2026, 02:46:08 UTC
Views: 9
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.