CVE-2025-58186 — Lack of limit when parsing cookies can cause memory exhaustion in net/http
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 atta…
Published: 2025-10-29 · CVSS: 5.3 · CVSS 3.1
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.
Source: CVE Program · Revision 8b16575c39f1e1810c5e863010da073d2d3285e7