Vulnerability Report: GO-2025-4012
- CVE-2025-58186, CVE-2025-58186
- Affects: net/http
- Published: Oct 29, 2025
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 Packages
-
PathVersionsSymbols
-
before go1.24.8, from go1.25.0 before go1.25.2
Aliases
References
- https://go.dev/issue/75672
- https://go.dev/cl/709855
- https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI
- https://vuln.go.dev/ID/GO-2025-4012.json
Credits
- jub0bs
Feedback
See anything missing or incorrect?
Suggest an edit to this report.