GO-2025-4012
Lack of limit when parsing cookies can cause memory exhaustion in net/http
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2025-58186
- Alias
- BIT-golang-2025-58186
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.
Paquets affectés
| Paquet | Versions |
|---|---|
| Go · stdlib | introduced 0, fixed 1.24.8, introduced 1.25.0, fixed 1.25.2 |
Références
- https://go.dev/issue/75672 REPORT
- https://go.dev/cl/709855 FIX
- https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |