CVE-2025-58186

Name
CVE-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.
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
security@golang.org https://go.dev/cl/709855
security@golang.org https://go.dev/issue/75672
security@golang.org https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI
security@golang.org https://pkg.go.dev/vuln/GO-2025-4012
af854a3a-2127-422b-91ae-364da2661108 http://www.openwall.com/lists/oss-security/2025/10/08/1

Match rules

CPE URI Source package Min version Max version
net/http >= 0 < 1.24.8
net/http >= 1.25.0 < 1.25.2

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
go edge-community 1.25.2-r0 Achill Gilgenast <achill@achill.org> fixed
go 3.22-community 1.24.8-r0 None fixed