What’s Vulnerable › Vulnerabilities

CVE-2025-61727: Improper application of excluded DNS name constraints when verifying wildcard names in crypto/x509

Description

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 products

How to fix

Upgrade to a fixed version: Go 1.24.11, 1.25.5. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-61727 or the next vulnerability affects your stack