CVE-2025-58188
7.5Go · crypto/x509
A flaw in the Go crypto/x509 library causes application panics when validating certificate chains containing DSA public keys due to an incorrect interface cast.
Executive summary
A vulnerability in the Go standard library allows unauthenticated remote attackers to trigger a denial of service by causing application panics during certificate chain validation.
Vulnerability
This is an uncaught exception (CWE-248) occurring during the validation of arbitrary certificate chains. An unauthenticated attacker can supply a crafted certificate containing a DSA public key to trigger an interface cast error, resulting in an application crash.
Business impact
The vulnerability carries a CVSS score of 7.5, indicating a high impact on service availability. Because certificate validation is a fundamental security operation, successful exploitation results in an immediate denial of service for any Go-based application relying on the affected library, potentially disrupting critical business operations and network communications.
Remediation
Immediate Action: Update the Go environment to version 1.24.8 or 1.25.2 or later to include the necessary security patches.
Proactive Monitoring: Monitor application error logs and system crash reports for repeated panic events related to the crypto/x509 package.
Compensating Controls: Implement strict certificate filtering at the network perimeter or load balancer level to drop non-standard or unexpected certificate types before they reach internal Go services.
Exploitation status
Public Exploit Available: No (unknown)
Analyst recommendation
Given the central role of the crypto/x509 library in secure communications, this vulnerability poses a significant risk to the stability of Go-based services. Administrators should prioritize patching the Go runtime to the specified versions immediately to prevent potential denial of service attacks against their infrastructure.
More Go CVEs
Sources
Originally found and disclosed by Jakub Ciolek, per the CVE Program record.