CVE-2025-58186
Lack of limit when parsing cookies can cause memory exhaustion in net/http
Published: Oct 29, 2025Updated: Nov 4, 2025 Sources: CVE List NVD BDU
5.3CVSSMEDIUM
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.
CVSS Vector Breakdown
Exploitability
AV:NAttack VectorNetwork
AC:LAttack ComplexityLow
PR:NPrivileges RequiredNone
UI:NUser InteractionNone
Scope
S:UScopeUnchanged
Impact
C:NConfidentialityNone
I:NIntegrityNone
A:LAvailabilityLow
Affected Products
go standard libraryoss-projectUSOSS Librariesaka golang standard library, net/http, crypto/x509, html/template
Exploitability
Official Patch Available
References
https://go.dev/cl/709855
go.dev
https://go.dev/issue/75672
go.dev
https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI
groups.google.com
and 4 more references View all →
Timeline
Published
Oct 29, 2025
Last Updated
Nov 4, 2025
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2025-58186 and every CVE in our database. Create a free account — no credit card required.
Create Free AccountPlain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows