wolfSSL versions 5.9.2 and earlier contain a vulnerability in the X.509 certificate validation logic. The flaw involves improper enforcement of NameConstraints extensions when an unconstrained CA tier exists between a name-constrained intermediate CA and the leaf certificate. This results in acceptance of certificates for unauthorized hostnames due to a chain-walking state-machine bug that resets validation state incorrectly. The issue affects the default build configuration using certificates with name constraints. The vulnerability has a medium severity with a CVSS v3.1 score of 5.3.