7.5High

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

Go standard library crypto/x509 Published: (1 year ago)

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): CWE-248CWE-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.8, 1.25.0 – < 1.25.2
golang go < 1.24.8

References and patches

CPE matches (NVD) (2)

  • cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* < 1.24.8
  • cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* ≥ 1.25.0 < 1.25.2