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.
https://pkg.go.dev/vuln/GO-2025-4012
https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI
Published: 2025-10-29
Updated: 2026-10-11
Named Vulnerability: GO-2025-4012Named Vulnerability: GHSA-rjcg-56ph-3qvg
Base Score: 5
Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P
Severity: Medium
Base Score: 5.3
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Severity: Medium
EPSS: 0.00565