Home

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.

PUBLISHED Reserved 2025-08-27 | Published 2025-10-29 | Updated 2025-10-30 | Assigner Go

Problem types

CWE-400: Uncontrolled Resource Consumption

Product status

Default status
unaffected

Any version before 1.24.8
affected

1.25.0 (semver) before 1.25.2
affected

Credits

jub0bs

References

go.dev/issue/75672

go.dev/cl/709855

groups.google.com/g/golang-announce/c/4Emdl2iQ_bI

pkg.go.dev/vuln/GO-2025-4012

cve.org (CVE-2025-58186)

nvd.nist.gov (CVE-2025-58186)

Download JSON