{"schema_version":"1.7.3","id":"BIT-golang-2025-58186","published":"2025-11-06T12:58:17.587Z","modified":"2025-11-06T13:59:39.685338Z","aliases":["CVE-2025-58186","GO-2025-4012"],"summary":"Lack of limit when parsing cookies can cause memory exhaustion in net/http","details":"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.","affected":[{"package":{"name":"golang","ecosystem":"Bitnami","purl":"pkg:bitnami/golang"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.24.8"},{"introduced":"1.25.0"},{"fixed":"1.25.2"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/golang/BIT-golang-2025-58186.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}]}],"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2025/10/08/1"},{"type":"WEB","url":"https://go.dev/cl/709855"},{"type":"WEB","url":"https://go.dev/issue/75672"},{"type":"WEB","url":"https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58186"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2025-4012"}],"database_specific":{"cpes":["cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*"],"severity":"Medium"}}