CVE-2025-58186
cAdvisor vulnerability analysis and mitigation

Overview

CVE-2025-58186 is a security vulnerability discovered in Go's net/http package that affects versions before Go 1.24.8 and from Go 1.25.0 before Go 1.25.2. The vulnerability was disclosed on October 29, 2025, and involves a memory exhaustion issue in the HTTP cookie parsing functionality. Despite HTTP headers having a default limit of 1MB, the number of cookies that can be parsed did not have a limit, making the system vulnerable to memory consumption attacks (Ubuntu Security, Golang Announce).

Technical details

The vulnerability exists in the net/http package's cookie parsing mechanism. While HTTP headers are limited to 1MB by default, there was no limit on the number of individual cookies that could be parsed. An attacker can exploit this by sending numerous small cookies (such as 'a=;') to force the HTTP server to allocate a large amount of structs, leading to excessive memory consumption. The vulnerability has been assigned a CVSS v3.1 Base Score of 5.3 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (Rapid7).

Impact

The primary impact of this vulnerability is on system availability. By exploiting this vulnerability, attackers can cause large memory consumption on HTTP servers, potentially leading to resource exhaustion and degraded service performance. The vulnerability affects multiple components and functions within the net/http package, including Client.Do, Client.Get, Client.Head, Client.Post, Client.PostForm, and various other HTTP-related functions (Go Packages).

Mitigation and workarounds

The vulnerability has been fixed in Go versions 1.24.8 and 1.25.2. The fix implements a limit of 3000 cookies that can be parsed, which can be adjusted using the httpcookiemaxnum GODEBUG option. Users are advised to upgrade to these patched versions to mitigate the vulnerability (Golang Announce).

Additional resources


SourceThis report was generated using AI

Related cAdvisor vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65637HIGH7.5
  • cAdvisorcAdvisor
  • golang-logrus
NoYesDec 04, 2025
CVE-2025-61729HIGH7.5
  • cAdvisorcAdvisor
  • loki-fips-3.6
NoYesDec 02, 2025
CVE-2025-61727MEDIUM6.5
  • cAdvisorcAdvisor
  • aws-privateca-issuer-fips
NoYesDec 03, 2025
CVE-2025-58181MEDIUM5.3
  • cAdvisorcAdvisor
  • kyverno-1.16
NoYesNov 19, 2025
CVE-2025-47914MEDIUM5.3
  • cAdvisorcAdvisor
  • docker-cli-buildx
NoYesNov 19, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management