A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-58186

CVE-2025-58186: HTTP Cookie Parsing DoS Vulnerability

CVE-2025-58186 is a denial of service vulnerability in HTTP cookie parsing that allows attackers to exhaust server memory by sending numerous small cookies. This article covers the technical details, impact, and mitigation.

Published: May 26, 2026

CVE-2025-58186 Overview

CVE-2025-58186 is a denial-of-service vulnerability in the Go standard library's net/http package. While HTTP headers are bounded by a default 1MB limit, the parser does not cap the number of individual cookies extracted from the Cookie header. An attacker can submit a request containing many minimally-sized cookies such as a=; to force the server to allocate a large number of cookie structs. The resulting memory pressure can degrade service availability on affected Go HTTP servers.

Critical Impact

Remote unauthenticated attackers can trigger excessive memory allocation in Go HTTP servers by sending crafted Cookie headers, leading to availability impact.

Affected Products

  • Go standard library net/http package (see Go Vulnerability Report GO-2025-4012)
  • HTTP servers built on affected Go runtime versions
  • Applications using http.Request.Cookies() or related cookie parsing functions

Discovery Timeline

  • 2025-10-29 - CVE-2025-58186 published to the National Vulnerability Database
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-58186

Vulnerability Analysis

The Go net/http package parses the Cookie request header into a slice of *http.Cookie structs. The parser enforces a 1MB cap on total header size but does not impose an upper bound on the number of cookie entries produced from that header. Each parsed cookie allocates a struct containing name, value, and metadata fields. When attackers pack the header with thousands of two-character entries, the allocator scales linearly with the entry count rather than with the byte size of the header.

This is a resource exhaustion issue [CWE-770] that affects only the availability dimension. It does not expose data or allow code execution. The Go security team addressed the issue via change list CL 709855 tracked in issue 75672.

Root Cause

The root cause is missing input validation on the cardinality of cookies parsed from a single Cookie header. The fix introduces a hard limit on the number of cookies the parser will produce regardless of header byte size.

Attack Vector

An unauthenticated remote attacker sends an HTTP request with a Cookie header populated by many short entries separated by semicolons. A single 1MB header can contain hundreds of thousands of a=; pairs. Each pair forces struct allocation during request parsing. Repeated requests amplify the memory pressure and can push the server toward out-of-memory termination or garbage collector thrashing.

No authentication, user interaction, or special network position is required. Any endpoint reachable over HTTP that parses cookies is exposed.

Detection Methods for CVE-2025-58186

Indicators of Compromise

  • HTTP requests containing Cookie headers approaching the 1MB limit with abnormally high counts of short name-value pairs
  • Repeated requests from a single source with payload patterns such as a=; b=; c=; repeated thousands of times
  • Go application processes exhibiting rapid heap growth correlated with inbound HTTP traffic
  • Out-of-memory kills or sustained garbage collection cycles on Go-based services

Detection Strategies

  • Inspect web server, load balancer, and WAF logs for Cookie header lengths above operational baselines
  • Count semicolon delimiters per Cookie header at the proxy layer and alert when counts exceed a sane threshold (for example, 100)
  • Correlate process memory metrics from runtime.MemStats with per-client request rates to identify amplification patterns

Monitoring Recommendations

  • Track Go runtime heap allocation rate and pause times alongside HTTP request volume
  • Enable structured logging for request header sizes and cookie counts on internet-facing services
  • Alert on traffic spikes from individual source IPs against endpoints that parse cookies prior to authentication

How to Mitigate CVE-2025-58186

Immediate Actions Required

  • Upgrade to the patched Go toolchain version identified in the Golang announcement and rebuild affected binaries
  • Inventory all Go-based HTTP services and confirm the runtime version compiled into each binary
  • Deploy WAF or reverse proxy rules to cap inbound Cookie header size and entry count until binaries are rebuilt

Patch Information

The fix is delivered through Go change list 709855 referenced in Go issue 75672 and tracked as GO-2025-4012. Rebuild Go applications against the patched toolchain to apply the bounded cookie parsing behavior. Additional discussion is available on the Openwall oss-security list.

Workarounds

  • Place a reverse proxy in front of Go services and configure a maximum Cookie header length well below 1MB
  • Reject requests at the edge when the number of cookie pairs exceeds the application's legitimate maximum
  • Apply per-source rate limiting on endpoints that process cookies before authentication
  • Set conservative request body and header timeouts on http.Server to limit the duration of malicious requests
bash
# Example nginx configuration to cap Cookie header size at the edge
http {
    large_client_header_buffers 4 8k;
    client_header_buffer_size 1k;

    map $http_cookie $cookie_too_long {
        default 0;
        "~^.{8192,}$" 1;
    }

    server {
        if ($cookie_too_long) {
            return 400;
        }
    }
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechN/A

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • Technical References
  • Go.dev Code Change

  • Go.dev Issue Tracker

  • Golang Announcement Post

  • Go.dev Vulnerability Report

  • Openwall OSS Security Discussion
  • Latest CVEs
  • CVE-2026-9813: FlowIntel SSRF Vulnerability

  • CVE-2026-4377: D-Link DWR-X1820 Auth Bypass Vulnerability

  • CVE-2026-47074: ex_aws_sns Auth Bypass Vulnerability

  • CVE-2026-46241: Linux Kernel Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English