CVE-2025-58186 Details
Description
Despite HTTP headers having a default limit of 1MB, the number of cookies that can be parsed does not have a limit. By sending a lot of very small cookies such as "a=;", an attacker can make an HTTP server allocate a large amount of structs, causing large memory consumption.
A vulnerability in the Go programming language's net/http package allows for memory exhaustion due to an unbounded number of cookies that can be parsed. While HTTP headers have a default size limit of 1MB, there was no limit on the number of cookies, enabling attackers to send numerous small cookies, such as 'a=;', to cause excessive memory consumption on the server.
This vulnerability has been addressed in Go versions 1.25.2 and 1.24.8. Users can download these versions from the Go website or compile from source using Git. Instructions for updating to the patched versions are available in the release notes.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 29, 2025CISA-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 | |
| https://go.dev/cl/709855 | [email protected] | Source CodeVendor |
| https://go.dev/issue/75672 | [email protected] | Issue TrackingTechnical DescriptionVendor |
| https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI | [email protected] | AdvisoryBundleMailing ListRemedyVendor |
| https://pkg.go.dev/vuln/GO-2025-4012 | [email protected] | AdvisoryVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| golang net/http | All versions |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 11, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 4, 2025 | CVE Modified | CVE |
| Oct 30, 2025 | CVE Modified | CISA-ADP |
| Oct 29, 2025 | New CVE Received | [email protected] |
Volerion