Go standard library crypto/x509
Case-sensitive excludedSubtrees name constraints cause Auth Bypass in crypto/x509
When verifying a certificate chain containing excluded DNS constraints, these constraints are not correctly applied to wildcard DNS SANs which use a different case than the constraint. This only affects validation of otherwise trusted certificate chains, issued by a root CA in the VerifyOptions.Roots CertPool, or in the system certificate pool.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.2high · scored by NVD · CWE-295
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Go standard library crypto/x509
- >= 1.26.0-0, < 1.26.2
Fixed in 1.26.2
Mitigation
Upgrade crypto/x509 to 1.26.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.