wolfSSL 5.9.4 Patches 11 Security Flaws Affecting TLS and Certificate Validation
wolfSSL 5.9.4 fixes 11 TLS and certificate-validation flaws, including trusted-peer and OCSP authentication bypasses.
X.509 NameConstraints Bypass in wolfSSL Certificate Validation (≤5.9.2)
wolfSSL versions 5.9.2 and earlier contain a CWE-295 certificate validation flaw in which the chain-walking state machine resets its validation state whenever it encounters an intermediate CA that carries no NameConstraints extension, discarding the restrictions imposed by a name-constrained CA higher in the chain. An attacker who controls or holds a CA certificate beneath a name-constrained intermediate can therefore present a chain that includes an unconstrained intermediate and have wolfSSL accept a certificate for hostnames outside the permitted namespace. The practical effect is that wolfSSL-based TLS clients and servers accept certificates they should reject, defeating name-based cryptographic delegation controls and enabling server impersonation or man-in-the-middle interception in deployments that rely on NameConstraints. The flaw exists in the default build configuration whenever name-constrained certificates are in use, so it primarily threatens embedded, IoT, and industrial products that bundle the library, and exploitation requires high attack complexity plus a PKI that actually uses name constraints (CVSS 4.0: 6.3, medium). No public proof of concept is known, there are no reports of exploitation in the wild, and the issue is not on CISA's KEV list; a fix is available in releases after 5.9.2, with 5.9.4 remediating this among other TLS flaws.
What to do: Upgrade to a wolfSSL release later than 5.9.2 — the current 5.9.4 release remediates this among 11 fixed TLS issues. If patching is not immediately possible, audit your PKI: deployments that never use NameConstraints extensions in any chain are not exposed to this specific bypass, but any chain where a name-constrained CA delegates through unconstrained intermediates is. Embedded and IoT product teams should also request updated firmware from vendors that bundle wolfSSL and verify the fix by testing chains that mix constrained and unconstrained intermediate CAs.
| Product | Affected |
|---|---|
| wolfSSL Inc. wolfSSL (embedded TLS/SSL library) | 5.9.2 and earlier |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
wolfSSL versions 5.9.2 and earlier contain a flaw in the X.509 certificate validation logic where it fails to properly enforce NameConstraints extensions when there is an unconstrained CA tier between a name-constrained intermediate CA and the leaf certificate. wolfSSL incorrectly accepted certificates for hostnames they shouldn't be allowed to cover, due to a chain-walking state-machine bug that resets the validation state when encountering an intermediate without NameConstraints, thereby bypassing cryptographic delegation controls. This defect exists in the default build configuration that makes use of certificates where name constraint extensions are used. Thanks to Jack Lloyd, PathDiff, and Ben Smyth for reporting the issue.
wolfSSL 5.9.4 fixes 11 TLS and certificate-validation flaws, including trusted-peer and OCSP authentication bypasses.
wolfSSL 5.9.4 patches 11 TLS vulnerabilities, including three high-severity certificate validation bypasses, and adds post-quantum cryptography features.
Today 1K readers · 1.2K views · 140 reads · all time 222K views