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.
Advisories

No advisories yet.

Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Wed, 29 Oct 2025 22:30:00 +0000

Type Values Removed Values Added
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.
Title Lack of limit when parsing cookies can cause memory exhaustion in net/http
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Go

Published:

Updated: 2025-10-29T22:10:13.912Z

Reserved: 2025-08-27T14:50:58.691Z

Link: CVE-2025-58186

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2025-10-29T23:16:19.547

Modified: 2025-10-29T23:16:19.547

Link: CVE-2025-58186

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.