{"id":"CVE-2025-58186","published":"2025-10-29T22:10:13Z","modified":"2025-11-04T21:13:35Z","title":"Lack of limit when parsing cookies can cause memory exhaustion in net/http","vendor":"Go standard library","product":"net/http","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00695,"percentile":0.48342,"provenance":"source"},"cwes":[],"references":[{"url":"https://go.dev/issue/75672","tags":[]},{"url":"https://go.dev/cl/709855","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2025-4012","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2025/10/08/1","tags":[]}],"priority":{"score":13.4,"factors":[{"name":"EPSS percentile","points":9.67},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"go-standard-library","affectedVersions":[{"vendor":"Go standard library","product":"net/http","versions":["< 1.24.8",">= 1.25.0, < 1.25.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-10-30T14:24:44.763207Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":["<1.24.8",">=1.25.0, <1.25.2"],"patched":["1.24.8","1.25.2"],"from":["GO-2025-4012"],"provenance":"source"}],"summary":{"text":"The net/http package in the Go standard library parses cookies without any limit on how many can be processed, even though HTTP headers are capped at 1MB by default. An unauthenticated remote attacker who can send requests to an HTTP server can exploit this without user interaction by sending many very small cookies (such as \"a=;\") to force the server to allocate large numbers of structs, causing significant memory consumption.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:47:00Z"},"euvd":{"id":"EUVD-2025-36733","exploited":false,"provenance":"source"}}