CVE Tools

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

AV:NAC:LPR:NUI:NS:UC:NI:NA:L
Exploitability
AV:NAttack Vector
Network
AC:LAttack Complexity
Low
PR:NPrivileges Required
None
UI:NUser Interaction
None
Scope
S:UScope
Unchanged
Impact
C:NConfidentiality
None
I:NIntegrity
None
A:LAvailability
Low

Affected Products

go standard libraryoss-projectUSOSS Librariesaka golang standard library, net/http, crypto/x509, html/template
the go projectoss-projectOSS Librariesaka go, golang-google-protobuf, crypto

Exploitability

Official Patch Available

References

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 Account
Plain-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