{"id":"GO-2025-4012","revision":"6ba89a92db744374ae0a4dd23bcca896","records":[{"revision":"6ba89a92db744374ae0a4dd23bcca896","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2025-4012","aliases":["BIT-golang-2025-58186","CVE-2025-58186"],"title":"Lack of limit when parsing cookies can cause memory exhaustion in net/http","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.","state":0,"publishedAt":"2025-10-29T21:50:05+00:00","modifiedAt":"2026-05-15T10:59:23.2508617+00:00","affected":[{"ecosystem":"Go","name":"stdlib","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.24.8"},{"kind":"introduced","version":"1.25.0"},{"kind":"fixed","version":"1.25.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://go.dev/issue/75672","https://go.dev/cl/709855","https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI"],"sourceUrl":"https://osv.dev/vulnerability/GO-2025-4012","license":"OSV · upstream source license applies","key":"osv:GO-2025-4012","identifiers":["GO-2025-4012","BIT-golang-2025-58186","CVE-2025-58186"]},"retained":false,"historicalAffected":[]}],"coverage":[]}