CVE-2025-58188 Panic when validating certificates with DSA public keys in crypto/x509

High 7.5 Published Updated

Attackers can cause a denial of service by triggering a panic in Go applications validating certificate chains with DSA public keys.

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-58188?

CVE-2025-58188 is a high-severity denial of service vulnerability in Golang Go, published on 29 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Validating certificate chains which contain DSA public keys can cause programs to panic, due to a interface cast that assumes they implement the Equal method. This affects programs which validate arbitrary certificate chains.

Weakness: CWE-295

Which versions are affected by CVE-2025-58188?

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

PackageAffectedFixed in
golang BitnamiAll versions1.24.8, 1.25.2
stdlib GoAll versions1.24.8, 1.25.2
Linux distribution packages (1)
starboard openSUSE:TumbleweedAll versions0.15.28-1.1

Products include Golang Go.

How do I fix CVE-2025-58188?

Upgrade golang to a fixed version for your release line: 1.24.8 or 1.25.2.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2025-58188 being exploited?

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

All Golang Go vulnerabilities

Sources

Also known as AZL-69146, AZL-69275, AZL-78915, AZL-98775, BELL-CVE-2025-58188, BIT-golang-2025-58188 and 292 more.

Is CVE-2025-58188 in your software?

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

Check your SBOMs for free