6.5Medium

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

Go standard library crypto/x509 Published: (11 months ago)

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.

Weakness (CWE): CWE-295

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Go standard library crypto/x509 < 1.24.11, 1.25.0 – < 1.25.5
golang go < 1.24.11

References and patches

CPE matches (NVD) (2)

  • cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* < 1.24.11
  • cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* ≥ 1.25 < 1.25.5