Go Vulnerability Database
GO-2025-4175
Improper application of excluded DNS name constraints when verifying wildcard names in crypto/x509
Details
An excluded subdomain constraint in a certificate chain does not restrict the usage of wildcard SANs in the leaf certificate. For example a constraint that excludes the subdomain test.example.com does not prevent a leaf certificate from claiming the SAN *.example.com.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | stdlib | All versions before 1.24.11 (fixed in 1.24.11) From 1.25.0 before 1.25.5 (fixed in 1.25.5) |