Skip to content

CVE-2026-94418 Signature failure masked by date error under WOLFSSL_SMALL_CERT_VERIFY

LowCVSS 2.3 EPSS 0.11%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

Under WOLFSSL_SMALL_CERT_VERIFY, ProcessPeerCertParse() runs the certificate signature check separately from the parse to keep peak memory down, then merges the two results, but it merged the signature result back only when the parse returned 0, so any parse error hid it. ParseCertRelative() reaches its validity-date, name-constraint and critical-extension checks only after ConfirmSignature() has passed, so splitting the signature check out inverts the precedence that makes "override date errors" a sound policy, and ASN_SIG_CONFIRM_E is never surfaced anywhere. The attacker needs no key material from the real PKI and no CA compromise: a self-made certificate carrying the expected subject name, the trusted CA's subject as its issuer, arbitrary bytes where the signature goes, a validity window in the past and the attacker's own key pair is sufficient. Affected builds define WOLFSSL_SMALL_CERT_VERIFY, which is off by default, is not set implicitly by any platform or preset header, and is not reachable from any CMake option; the autotools routes are --enable-lowresource, --enable-leantls, --enable-tinytls13=cert and --enable-tinytls13=mutualauth, and examples/configs/user_settings_embedded.h reaches it through WC_CFG_SMALL_CERT_VERIFY, which ships as 0, while neither --enable-all nor --enable-distro enables it at all. The application must additionally install a verify callback through wolfSSL_CTX_set_verify() or wolfSSL_set_verify() with WOLFSSL_VERIFY_PEER that returns 1 for ASN_BEFORE_DATE_E or ASN_AFTER_DATE_E; wolfSSL ships this exact shape as myVerify() in wolfssl/test.h under VERIFY_OVERRIDE_DATE_ERR, which examples/client -D selects. An application with no callback, or whose callback returns preverify for date errors, still fails the handshake, and wolfSSL_CertManagerVerifyBuffer() and wc_CheckCertSignature() report ASN_SIG_CONFIRM_E correctly in the same binary. TLS 1.2 and TLS 1.3 are affected in both directions, and DTLS reaches the same function; where the forged certificate is a chain certificate the callback's consent causes it to be cached in the WOLFSSL_CTX certificate manager, so an exposed deployment must restart the context or the process rather than merely reconnect.

Upgrade path

9 packages: 2 fixed, 7 with no fix yet.

PackageAffectedFixed inStatus
azure linux libical(Azure Linux 3.0) All versions No fix listed No fix yet
debian/wolfssl(Debian 12) = 5.5.4-2; = 5.5.4-2+deb12u1; = 5.5.4-2+deb12u2; = 5.5.4-2+deb12u3 +24 more No fix listed No fix yet
debian/wolfssl(Debian 13) = 5.7.2-0.1; = 5.7.2-0.1+deb13u1; = 5.7.2-0.1+deb13u2; = 5.7.2-0.2 +11 more No fix listed No fix yet
ubuntu/wolfssl(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/wolfssl(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/wolfssl(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/wolfssl(Ubuntu 26.10) All versions No fix listed No fix yet
alpine/wolfssl(Alpine v3.24) >= 3.15.5, < 5.9.4-r0 5.9.4-r0 Fixed
wolfSSL >= 3.15.5, <= 5.9.2 after 5.9.2 Fixed

Affected products

ProductAffected versionsFixed in
wolfSSL >= 3.15.5, <= 5.9.2 No fix listed
debian/wolfssl(Debian:12) All versions No fix listed
debian/wolfssl(Debian:12) = 5.5.4-2 No fix listed
debian/wolfssl(Debian:12) = 5.5.4-2+deb12u1 No fix listed
debian/wolfssl(Debian:12) = 5.5.4-2+deb12u2 No fix listed
debian/wolfssl(Debian:12) = 5.5.4-2+deb12u3 No fix listed
debian/wolfssl(Debian:12) = 5.5.4-2.1 No fix listed
debian/wolfssl(Debian:12) = 5.6.4-1 No fix listed
debian/wolfssl(Debian:12) = 5.6.4-2 No fix listed
debian/wolfssl(Debian:12) = 5.6.6-1 No fix listed
debian/wolfssl(Debian:12) = 5.6.6-1.1 No fix listed
debian/wolfssl(Debian:12) = 5.6.6-1.2 No fix listed
debian/wolfssl(Debian:12) = 5.6.6-1.3 No fix listed
debian/wolfssl(Debian:12) = 5.6.6-1.3~exp1 No fix listed
debian/wolfssl(Debian:12) = 5.7.0-0.1 No fix listed
debian/wolfssl(Debian:12) = 5.7.0-0.2 No fix listed
debian/wolfssl(Debian:12) = 5.7.0-0.3 No fix listed
debian/wolfssl(Debian:12) = 5.7.2-0.1 No fix listed
debian/wolfssl(Debian:12) = 5.7.2-0.2 No fix listed
debian/wolfssl(Debian:12) = 5.7.2-0.3 No fix listed
debian/wolfssl(Debian:12) = 5.7.2-0.4 No fix listed
debian/wolfssl(Debian:12) = 5.8.2-1 No fix listed
debian/wolfssl(Debian:12) = 5.8.2-1.1 No fix listed
debian/wolfssl(Debian:12) = 5.8.2-1.2 No fix listed
debian/wolfssl(Debian:12) = 5.8.4-1 No fix listed
Show 25 more
ProductAffected versionsFixed in
debian/wolfssl(Debian:12) = 5.9.0-0.1 No fix listed
debian/wolfssl(Debian:12) = 5.9.0-0.2 No fix listed
debian/wolfssl(Debian:12) = 5.9.1-0.1 No fix listed
debian/wolfssl(Debian:12) = 5.9.2-1 No fix listed
debian/wolfssl(Debian:13) All versions No fix listed
debian/wolfssl(Debian:13) = 5.7.2-0.1 No fix listed
debian/wolfssl(Debian:13) = 5.7.2-0.1+deb13u1 No fix listed
debian/wolfssl(Debian:13) = 5.7.2-0.1+deb13u2 No fix listed
debian/wolfssl(Debian:13) = 5.7.2-0.2 No fix listed
debian/wolfssl(Debian:13) = 5.7.2-0.3 No fix listed
debian/wolfssl(Debian:13) = 5.7.2-0.4 No fix listed
debian/wolfssl(Debian:13) = 5.8.2-1 No fix listed
debian/wolfssl(Debian:13) = 5.8.2-1.1 No fix listed
debian/wolfssl(Debian:13) = 5.8.2-1.2 No fix listed
debian/wolfssl(Debian:13) = 5.8.4-1 No fix listed
debian/wolfssl(Debian:13) = 5.9.0-0.1 No fix listed
debian/wolfssl(Debian:13) = 5.9.0-0.2 No fix listed
debian/wolfssl(Debian:13) = 5.9.1-0.1 No fix listed
debian/wolfssl(Debian:13) = 5.9.2-1 No fix listed
ubuntu/wolfssl(Ubuntu:22.04) All versions No fix listed
alpine/wolfssl(Alpine:v3.24) >= 3.15.5, < 5.9.4-r0 5.9.4-r0
ubuntu/wolfssl(Ubuntu:24.04) All versions No fix listed
ubuntu/wolfssl(Ubuntu:26.04) All versions No fix listed
ubuntu/wolfssl(Ubuntu:26.10) All versions No fix listed
azure linux libical(Azure Linux:3.0) All versions No fix listed

References