JLSEC-2026-2371: A certificate with no dNSName SAN but another SAN type present (e.g. registeredID or iPAddress)...
A certificate with no dNSName SAN but another SAN type present (e.g. registeredID or iPAddress) bypassed the Subject CN dNSName name-constraint check. The CN-as-DNS fallback was gated on cert->subjectCN != NULL && cert->altNames == NULL && !cert->isCA instead of "no dNSName SAN", so an out-of-scope CN was accepted. This incomplete fix from CVE-2026-6731, leading to the name-constraint check issue, was introduced in wolfSSL version 5.9.2.
Affected Software
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which certificate chains can bypass the intended name-constraint validation?
The affected case is a non-CA certificate that has no dNSName SAN but does contain another SAN type, such as registeredID or iPAddress, and has an out-of-scope Common Name. In that situation, the Subject CN is accepted without the expected dNSName name-constraint check.
What must an attacker be able to provide to exploit this issue?
An attacker needs a certificate chain whose name constraints would reject the certificate's Common Name if it were checked, while the leaf certificate includes a non-DNS SAN type and no dNSName SAN. Exploitation does not require prior privileges or user interaction according to the supplied vector.
Are deployments using wolfSSL before version 5.9.2 affected by this specific flaw?
The incomplete fix that introduced this issue was introduced in wolfSSL 5.9.2. The provided data does not identify affected or fixed versions beyond that introduction point.