Go net/http Cookie Parsing Limit Vulnerability Causes Memory Exhaustion

Vulnerability

A vulnerability in the Go programming language's net/http package allows for memory exhaustion due to an unbounded number of cookies that can be parsed. While HTTP headers have a default size limit of 1MB, there was no limit on the number of cookies, enabling attackers to send numerous small cookies, such as 'a=;', to cause excessive memory consumption on the server.

Impact

Exploitation of this vulnerability leads to significant memory consumption on the server, potentially causing memory exhaustion issues.

Remediation

This vulnerability has been addressed in Go versions 1.25.2 and 1.24.8. Users can download these versions from the Go website or compile from source using Git. Instructions for updating to the patched versions are available in the release notes.

Added: Oct 29, 2025, 11:26 PM
Updated: Oct 29, 2025, 11:26 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
8.1
remediation
0.0
relevance
0.8
threat
3.2
urgency
2.9
incentive
5.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.