5.3Medium

CVE-2025-58185Parsing DER payload can cause memory exhaustion in encoding/asn1

Go standard library encoding/asn1 Published: (1 year ago)

Description

Parsing a maliciously crafted DER payload could allocate large amounts of memory, causing memory exhaustion.

Weakness (CWE): CWE-400CWE-770

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 encoding/asn1 < 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