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.
Problem types
CWE-400: Uncontrolled Resource Consumption
Product status
Any version before 1.24.8
1.25.0 (semver) before 1.25.2
Credits
jub0bs
References
groups.google.com/g/golang-announce/c/4Emdl2iQ_bI