---
id: CVE-2025-58188
title: >-
  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
summary: >-
  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.
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-295
  - CWE-617
vendor: golang
product: go
affected:
  - go < 1.24.8
  - 'go >= 1.25.0, < 1.25.2'
patched:
  - go 1.25.2
published: '2025-10-29'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T10:10:00.227'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-58188'
references:
  - url: 'https://go.dev/cl/709853'
    label: security@golang.org
  - url: 'https://go.dev/issue/75675'
    label: security@golang.org
  - url: 'https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI'
    label: security@golang.org
  - url: 'https://pkg.go.dev/vuln/GO-2025-4013'
    label: security@golang.org
  - url: 'http://www.openwall.com/lists/oss-security/2025/10/08/1'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-58188.json
  - url: 'https://access.redhat.com/security/cve/CVE-2025-58188'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2407255'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2025-58188'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-58188'
  - url: 'https://access.redhat.com/errata/RHSA-2026:7385'
  - url: 'https://access.redhat.com/errata/RHSA-2026:7291'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
  - osv
  - go
epss: 0.00381
epssPercentile: 0.31972
aliases:
  - GO-2025-4013
  - BIT-golang-2025-58188
ecosystem: go
ingestedAt: '2026-08-08T19:14:56.237Z'
---

## Overview

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.

## Affected

- `go < 1.24.8`
- `go >= 1.25.0, < 1.25.2`

## Remediation

Upgrade past the affected range:

- `go 1.25.2`

## Package advisory (CVE-2025-58188)

Affected packages:

- `stdlib >= 1.25.0, < 1.25.2`

Patched in:

- `stdlib 1.25.2`

Source: https://osv.dev/vulnerability/GO-2025-4013

## Vendor advisories

- **RHSA-2026:7385** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-04-10 · [advisory](https://access.redhat.com/errata/RHSA-2026:7385)
- **RHSA-2026:7291** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-04-09 · [advisory](https://access.redhat.com/errata/RHSA-2026:7291)
- **Red Hat VEX** · Moderate · affected: Builds for Red Hat OpenShift, OpenShift Pipelines, Red Hat Developer Hub, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 9, Red Hat OpenShift Dev Spaces, … · no fix planned: Builds for Red Hat OpenShift, Red Hat Developer Hub, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 9, … · updated 2026-09-10 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-58188.json)
