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

Medium 6.5 Published Updated

Attackers can bypass DNS name constraints in certificate chains by using wildcard SANs, potentially enabling man-in-the-middle attacks.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-61727?

CVE-2025-61727 is a medium-severity vulnerability in Golang Go, published on 3 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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-295

Which versions are affected by CVE-2025-61727?

2 open source packages ship an affected version, including golang and stdlib. It affects 1 product.

PackageAffectedFixed in
golang BitnamiAll versions1.24.11, 1.25.5
stdlib GoAll versions1.24.11, 1.25.5
Linux distribution packages (8)
golang-fips1.25 Red Hat:hummingbird:1All versions0:1.25.8-0.1.hum1
golang-fips1.25-bin Red Hat:hummingbird:1All versions0:1.25.8-0.1.hum1
golang-fips1.25-docs Red Hat:hummingbird:1All versions0:1.25.8-0.1.hum1
golang-fips1.25-misc Red Hat:hummingbird:1All versions0:1.25.8-0.1.hum1
golang-fips1.25-race Red Hat:hummingbird:1All versions0:1.25.8-0.1.hum1
golang-fips1.25-src Red Hat:hummingbird:1All versions0:1.25.8-0.1.hum1
golang-fips1.25-tests Red Hat:hummingbird:1All versions0:1.25.8-0.1.hum1
kubelogin openSUSE:TumbleweedAll versions0.2.14-1.1

Products include Golang Go.

How do I fix CVE-2025-61727?

Upgrade golang to a fixed version for your release line: 1.24.11 or 1.25.5.

Is CVE-2025-61727 being exploited?

There is no known exploitation of CVE-2025-61727 in the wild and no public exploit code.

All Golang Go vulnerabilities

Sources

Also known as AZL-71447, AZL-71635, AZL-78927, AZL-98646, BELL-CVE-2025-61727, BIT-golang-2025-61727 and 363 more.

Is CVE-2025-61727 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free