CVE-2025-58185 Details
Description
Parsing a maliciously crafted DER payload could allocate large amounts of memory, causing memory exhaustion.
A vulnerability exists in the Go programming language's standard library, specifically in the encoding/asn1 package, prior to version 1.24.8 and in version 1.25.0 prior to 1.25.2. The issue arises when the library parses DER (Distinguished Encoding Rules) payloads. The parsing process allocates memory before fully validating the payloads, allowing an attacker to create a large, empty DER payload that can lead to memory exhaustion. This vulnerability affects functions such as asn1.Unmarshal, x509.ParseCertificateRequest, and ocsp.ParseResponse.
Users can upgrade to Go versions 1.25.2 or 1.24.8 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 30, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2025/10/08/1 | CVE | Mailing ListRelease Notes |
| https://go.dev/cl/709856 | [email protected] | Patch |
| https://go.dev/issue/75671 | [email protected] | Issue Tracking |
| https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI | [email protected] | Mailing ListRelease Notes |
| https://pkg.go.dev/vuln/GO-2025-4011 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| golang go | < 1.24.8 >= 1.25.0, < 1.25.2 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Feb 6, 2026 | Reanalysis | [email protected] |
| Jan 29, 2026 | Initial Analysis | [email protected] |
| Nov 4, 2025 | CVE Modified | CVE |
| Oct 30, 2025 | CVE Modified | CISA-ADP |
| Oct 29, 2025 | New CVE Received | [email protected] |