CVE-2025-58185: Go standard library encoding/asn1 · Uncontrolled Resource Consumption
Affects Go standard library encoding/asn1Source CVE Database V5
Not known to be exploited · CVSS 5.3 Medium.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 46% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 29 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Gogithub.com/golang/go/src/encoding/asn1pkg:golang/github.com/golang/go/src/encoding/asn1Other threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
1. Upgrade to a fixed version of the Go standard library once the patch for CVE-2025-58185 is released. Monitor official Go project channels for updates. 2. Implement strict input validation and sanity checks on ASN.1 DER data before parsing to detect and reject malformed or suspicious payloads. 3. Employ resource usage limits such as memory quotas or timeouts on processes or containers running Go applications that parse ASN.1 data to prevent resource exhaustion. 4. Use sandboxing or isolation techniques to limit the impact of potential DoS attacks on critical systems. 5. Monitor application logs and system metrics for unusual memory consumption patterns indicative of exploitation attempts. 6. Where feasible, consider alternative parsing libraries with better resource control or hardened ASN.1 parsers. 7. Educate developers and security teams about the risks of parsing untrusted ASN.1 data and encourage secure coding practices. 8. Conduct penetration testing and fuzzing focused on ASN.1 DER inputs to identify similar vulnerabilities proactively.
Description
To determine the support lifecycle for your software, see the Microsoft Support Lifecycle: https://support.microsoft.com/lifecycle