Lack of limit when parsing cookies can cause memory exhaustion in net/http
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Partial Red Hat: 1 fixed, 81 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Go standard library | net/http | before 1.24.8; 1.25.0 to before 1.25.2 | 1.24.8, 1.25.2 | Patch available | CNA |
- net/http VendorGo standard library Affected before 1.24.8; 1.25.0 to before 1.25.2 Fixed in 1.24.8, 1.25.2 Patch available CNA
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* | — | — | Go standard library |
- cpe:2.3:a:golang:go:*:*:*:*:*:*:*:* Versions — — ·Go standard library
Remediation
- Fix · CNA net/http (Go standard library) Fixed in 1.24.8, 1.25.2
Red Hat 2 advisories
- RHSA-2026:7385 Released 2026-04-10 · Red Hat rating ImportantRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images golang1.25-1.25.9-1.hum1@aarch64, golang1.25-1.25.9-1.hum1@src, golang1.25-1.25.9-1.hum1@x86_64 +12
- RHSA-2026:7291 Released 2026-04-09 · Red Hat rating ImportantRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images golang1.26-1.26.2-1.hum1@aarch64, golang1.26-1.26.2-1.hum1@src, golang1.26-1.26.2-1.hum1@x86_64 +12
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Assisted Installer for Red Hat OpenShift Container Platform 2 | Affected | — |
| Builds for Red Hat OpenShift | Affected | — |
| Compliance Operator | Affected | — |
| Confidential Compute Attestation | Affected | — |
| Cryostat 4 | Affected | No fix yet: Fix deferred |
| Custom Metric Autoscaler operator for Red Hat Openshift | Affected | — |
| Deployment Validation Operator | Affected | — |
| External Secrets Operator for Red Hat OpenShift | Affected | — |
| ExternalDNS Operator | Affected | — |
| Fence Agents Remediation Operator | Affected | — |
| File Integrity Operator | Affected | — |
| Gatekeeper 3 | Affected | — |
| Kube Descheduler Operator | Affected | — |
| Logging Subsystem for Red Hat OpenShift | Affected | — |
| Logical Volume Manager Storage | Affected | — |
| Machine Deletion Remediation Operator | Affected | — |
| Migration Toolkit for Applications 7 | Affected | — |
| Migration Toolkit for Applications 8 | Affected | — |
| Migration Toolkit for Containers | Affected | — |
| Migration Toolkit for Virtualization | Affected | — |
| Multiarch Tuning Operator | Affected | — |
| Multicluster Engine for Kubernetes | Affected | — |
| Multicluster Global Hub | Affected | — |
| Network Observability Operator | Affected | — |
| Node HealthCheck Operator | Affected | — |
| Node Maintenance Operator | Affected | — |
| OpenShift API for Data Protection | Affected | — |
| OpenShift Developer Tools and Services | Affected | — |
| OpenShift Lightspeed | Affected | — |
| OpenShift Pipelines | Affected | — |
| OpenShift Run Once Duration Override Operator | Affected | — |
| OpenShift Secondary Scheduler Operator | Affected | — |
| OpenShift Serverless | Affected | No fix yet: Fix deferred |
| OpenShift Service Mesh 2 | Affected | — |
| OpenShift Service Mesh 3 | Affected | — |
| OpenShift Source-to-Image (S2I) | Affected | — |
| Power monitoring for Red Hat OpenShift | Affected | — |
| Red Hat 3scale API Management Platform 2 | Affected | No fix yet: Fix deferred |
| Red Hat Advanced Cluster Management for Kubernetes 2 | Affected | — |
| Red Hat Advanced Cluster Security 4 | Affected | — |
| Red Hat Ansible Automation Platform 2 | Affected | — |
| Red Hat Ceph Storage 5 | Affected | — |
| Red Hat Ceph Storage 6 | Affected | — |
| Red Hat Ceph Storage 7 | Affected | — |
| Red Hat Ceph Storage 8 | Affected | — |
| Red Hat Certification Program for Red Hat Enterprise Linux 9 | Affected | — |
| Red Hat Connectivity Link 1 | Affected | No fix yet: Fix deferred |
| Red Hat Developer Hub 1 | Affected | No fix planned: Out of support scope |
| Red Hat Edge Manager preview | Affected | — |
| Red Hat Enterprise Linux 10 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | — |
| Red Hat Enterprise Linux 8 | Affected | — |
| Red Hat Enterprise Linux 9 | Affected | No fix planned: Out of support scope |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Cluster Manager CLI | Affected | — |
| Red Hat OpenShift Container Platform 4 | Affected | — |
| Red Hat OpenShift Dev Spaces | Affected | — |
| Red Hat OpenShift Dev Workspaces Operator | Affected | — |
| Red Hat OpenShift GitOps | Affected | — |
| Red Hat OpenShift Update Service | Affected | — |
| Red Hat OpenShift Virtualization 4 | Affected | — |
| Red Hat OpenShift distributed tracing 3 | Affected | — |
| Red Hat OpenShift for Windows Containers | Affected | — |
| Red Hat OpenShift on AWS | Affected | — |
| Red Hat OpenStack Platform 16.2 | Affected | — |
| Red Hat OpenStack Platform 17.1 | Affected | — |
| Red Hat OpenStack Platform 18.0 | Affected | — |
| Red Hat Openshift Data Foundation 4 | Affected | — |
| Red Hat Quay 3 | Affected | — |
| Red Hat Runtimes Inventory Operator | Affected | — |
| Red Hat Satellite 6 | Affected | — |
| Red Hat Service Interconnect 1 | Affected | No fix yet: Fix deferred |
| Red Hat Service Interconnect 2 | Affected | No fix yet: Fix deferred |
| Red Hat Trusted Artifact Signer | Affected | — |
| Red Hat Web Terminal | Affected | — |
| Self Node Remediation Operator | Affected | — |
| Service Telemetry Framework 1.5 | Affected | — |
| Zero Trust Workload Identity Manager - Tech Preview | Affected | — |
| cert-manager Operator for Red Hat OpenShift | Affected | — |
| external secrets operator for Red Hat OpenShift - Tech Preview | Affected | — |
| streams for Apache Kafka 3 | Affected | No fix yet: Fix deferred |
| Red Hat Hardened Images | Fixed | RHSA-2026:7291, RHSA-2026:7385 |
Not affected: 2 products
- Red Hat AI Inference Server
- Red Hat OpenShift AI (RHOAI)
Timeline
- 2026-10-02 Threatist record created from CVE-2025-58186
- 2026-10-03 Alias added: GHSA-rjcg-56ph-3qvg
- 2026-10-27 Affected versions changed · Red Hat
References
More Go standard library vulnerabilities
- TI-2020-00578 Improper certificate validation in Microsoft Windows KEVCVSS 3.1HIGH 8.1
- TI-2023-23979 The HTTP/2 protocol allows a denial of service (server resource consumption) because… KEVCVSS 3.1HIGH 7.5
- TI-2023-24278 HTTP/2 CONTINUATION flood in net/http CVSS 3.1HIGH 7.5
- TI-2018-05208 The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used… CVSS 3.1HIGH 8.8
- TI-2024-16309 Panic when parsing invalid palette-color images in golang.org/x/image CVSS 3.1HIGH 7.5
- TI-2022-20112 Request smuggling due to improper request handling in golang.org/x/net/http2/h2c CVSS 3.1HIGH 7.5
Sources
- CVE-2025-58186 · CVE Program
- CVE-2025-58186 · NVD
- FIRST EPSS
- GHSA-rjcg-56ph-3qvg · GitHub Advisory Database · CC BY 4.0
- CVE-2025-58186 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences