Skip to main content
EPSS 0.5%top 57%

CVE-2025-58186: CWE-400: Uncontrolled Resource Consumption in Go standard library net/http

0
Medium
Published: 10/31/2025 (10/31/2025, 01:06:39 UTC)
Source: CVE Database V5
Vendor/Project: Go standard library
Product: net/http

Description

CVE-2025-58186 is a medium severity vulnerability in the Go standard library net/http package. It involves uncontrolled resource consumption due to the lack of a limit on the number of cookies parsed, despite an overall HTTP header size limit of 1MB. An attacker can exploit this by sending many small cookies, causing the server to allocate excessive memory and degrade availability.

CVSS v3.1

Score 5.3medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected software

net/http
pkg:golang/net/http
Affected versions
=0=1.25.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/03/2026, 21:17:51 UTC

Technical Analysis

The vulnerability in the Go standard library's net/http package arises because while HTTP headers have a default size limit of 1MB, there is no limit on the number of cookies parsed. An attacker can send numerous very small cookies (e.g., "a=;") which forces the HTTP server to allocate a large number of internal structures, resulting in significant memory consumption. This is classified under CWE-400: Uncontrolled Resource Consumption. The affected versions include all versions up to 1.25.0. The CVSS v3.1 base score is 5.3 (medium severity), reflecting a network attack vector with low complexity and no privileges or user interaction required, impacting availability only.

Potential Impact

The impact is limited to availability degradation due to excessive memory consumption on the HTTP server. There is no confidentiality or integrity impact. No known exploits are reported in the wild at this time.

Mitigation Recommendations

Patch status is not yet confirmed — no patch or official fix information is provided in the vendor advisory. Users should monitor the Go project advisories for updates. Until a fix is available, consider implementing application-level limits on the number of cookies processed or deploying upstream protections such as web application firewalls that can limit cookie count or size.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Go
Date Reserved
2025-08-27T14:50:58.691Z
State
PUBLISHED

Threat ID: 69029404f29b216d6d5e20bd

Added to database: 10/29/2025, 22:24:04 UTC

Last enriched: 06/03/2026, 21:17:51 UTC

Last updated: 09/10/2026, 19:36:51 UTC

Views: 188

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses