CVE-2025-58186

Lack of limit when parsing cookies can cause memory exhaustion in net/http

Published Oct 29, 2025 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Golang
Golang net
Vendors & Products Golang
Golang net
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
Weaknesses

No weakness.

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Nov 4, 2025, 9:13 PM
Reserved
Aug 27, 2025, 2:50 PM
Status
Deferred
Published
Oct 29, 2025, 11:16 PM
Modified
Oct 11, 2026, 8:10 PM
Severity
Low
Public date
Oct 29, 2025, 10:10 PM