CVEfocus › CVE database › CVE-2025-58186

CVE-2025-58186Lack of limit when parsing cookies can cause memory exhaustion in net/http

CVSS 5.3 MediumEPSS 0.7% (higher than 48% of CVEs)Published 2025-10-29Updated 2025-11-04Assigner: Go

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.

What to do

Fixed builds are available from Alpine, Go: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
21Fix pending
151Under investigation
3Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04golang-1.23Under investigationUBUNTU-CVE-2025-58186
Ubuntu 26.04golang-1.24Under investigationUBUNTU-CVE-2025-58186
Ubuntu 26.04golang-1.25Not affected
vulnerable_code_not_present
Ubuntu 25.10golang-1.23Will not fix
Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of…
UBUNTU-CVE-2025-58186
Ubuntu 25.10golang-1.24Will not fix
Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of…
UBUNTU-CVE-2025-58186
Ubuntu 25.10golang-1.25Will not fix
Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of…
UBUNTU-CVE-2025-58186
Ubuntu 24.04golang-1.21Under investigationUBUNTU-CVE-2025-58186
Ubuntu 24.04golang-1.22Under investigationUBUNTU-CVE-2025-58186
Ubuntu 24.04golang-1.23Under investigationUBUNTU-CVE-2025-58186
Ubuntu 24.04golang-1.24Under investigationUBUNTU-CVE-2025-58186
Ubuntu 24.04golang-1.25Not affected
vulnerable_code_not_present
Ubuntu 22.04golang-1.13Fix pendingUBUNTU-CVE-2025-58186
Ubuntu 22.04golang-1.17Under investigationUBUNTU-CVE-2025-58186
Ubuntu 22.04golang-1.18Under investigationUBUNTU-CVE-2025-58186
Ubuntu 22.04golang-1.20Under investigationUBUNTU-CVE-2025-58186
Ubuntu 22.04golang-1.21Under investigationUBUNTU-CVE-2025-58186
Ubuntu 22.04golang-1.22Under investigationUBUNTU-CVE-2025-58186
Ubuntu 22.04golang-1.23Under investigationUBUNTU-CVE-2025-58186
Ubuntu 22.04golang-1.24Under investigationUBUNTU-CVE-2025-58186
Ubuntu 22.04golang-1.25Under investigationUBUNTU-CVE-2025-58186
Ubuntu 20.04golang-1.13Fix pendingUBUNTU-CVE-2025-58186
Ubuntu 20.04golang-1.14Fix pendingUBUNTU-CVE-2025-58186
Ubuntu 20.04golang-1.16Fix pendingUBUNTU-CVE-2025-58186
Ubuntu 20.04golang-1.18Fix pendingUBUNTU-CVE-2025-58186
Ubuntu 20.04golang-1.20Fix pendingUBUNTU-CVE-2025-58186
Ubuntu 20.04golang-1.21Fix pendingUBUNTU-CVE-2025-58186
Ubuntu 20.04golang-1.22Fix pendingUBUNTU-CVE-2025-58186
Ubuntu 18.04golang-1.10Fix pendingUBUNTU-CVE-2025-58186
Ubuntu 18.04golang-1.13Fix pendingUBUNTU-CVE-2025-58186
Ubuntu 18.04golang-1.16Fix pendingUBUNTU-CVE-2025-58186
Ubuntu 18.04golang-1.18Fix pendingUBUNTU-CVE-2025-58186
Ubuntu 18.04golang-1.8Fix pendingUBUNTU-CVE-2025-58186
Ubuntu 18.04golang-1.9Fix pendingUBUNTU-CVE-2025-58186
Ubuntu 16.04golang-1.10Fix pendingUBUNTU-CVE-2025-58186
Ubuntu 16.04golang-1.13Fix pendingUBUNTU-CVE-2025-58186
Ubuntu 16.04golang-1.18Fix pendingUBUNTU-CVE-2025-58186
Ubuntu 16.04golang-1.6Fix pendingUBUNTU-CVE-2025-58186
Ubuntu 14.04golang-1.10Fix pendingUBUNTU-CVE-2025-58186
Debian 13golang-1.24Fix pendingDEBIAN-CVE-2025-58186
Debian 12golang-1.19Fix pendingDEBIAN-CVE-2025-58186
Red Hat Enterprise Linux 10buildahUnder investigation
Red Hat Enterprise Linux 10buildah-testsUnder investigation
Red Hat Enterprise Linux 10butaneUnder investigation
Red Hat Enterprise Linux 10delveUnder investigation
Red Hat Enterprise Linux 10git-lfsUnder investigation
Red Hat Enterprise Linux 10go-toolsetUnder investigation
Red Hat Enterprise Linux 10golangUnder investigation
Red Hat Enterprise Linux 10golang-binUnder investigation
Red Hat Enterprise Linux 10golang-docsUnder investigation
Red Hat Enterprise Linux 10golang-github-openprinting-ipp-usbUnder investigation
Red Hat Enterprise Linux 10golang-miscUnder investigation
Red Hat Enterprise Linux 10golang-raceUnder investigation
Red Hat Enterprise Linux 10golang-srcUnder investigation
Red Hat Enterprise Linux 10golang-testsUnder investigation
Red Hat Enterprise Linux 10grafanaUnder investigation
Red Hat Enterprise Linux 10grafana-pcpUnder investigation
Red Hat Enterprise Linux 10grafana-selinuxUnder investigation
Red Hat Enterprise Linux 10gvisor-tap-vsockUnder investigation
Red Hat Enterprise Linux 10gvisor-tap-vsock-gvforwarderUnder investigation
Red Hat Enterprise Linux 10ignitionUnder investigation
Red Hat Enterprise Linux 10ignition-edgeUnder investigation
Red Hat Enterprise Linux 10ignition-grubUnder investigation
Red Hat Enterprise Linux 10ignition-validateUnder investigation
Red Hat Enterprise Linux 10image-builderUnder investigation
Red Hat Enterprise Linux 10ipp-usbUnder investigation
Red Hat Enterprise Linux 10opentelemetry-collectorUnder investigation
Red Hat Enterprise Linux 10osbuild-composerUnder investigation
Red Hat Enterprise Linux 10osbuild-composer-coreUnder investigation
Red Hat Enterprise Linux 10osbuild-composer-workerUnder investigation
Red Hat Enterprise Linux 10podmanUnder investigation
Red Hat Enterprise Linux 10podman-dockerUnder investigation
Red Hat Enterprise Linux 10podman-remoteUnder investigation
Red Hat Enterprise Linux 10podman-testsUnder investigation
Red Hat Enterprise Linux 10rhcUnder investigation
Red Hat Enterprise Linux 10rhc-worker-playbookUnder investigation
Red Hat Enterprise Linux 10skopeoUnder investigation
Red Hat Enterprise Linux 10skopeo-testsUnder investigation
Red Hat Enterprise Linux 10toolboxUnder investigation
Red Hat Enterprise Linux 10toolbox-testsUnder investigation
Red Hat Enterprise Linux 10trustee-guest-componentsUnder investigation
Red Hat Enterprise Linux 10yggdrasilUnder investigation
Red Hat Enterprise Linux 10yggdrasil-develUnder investigation
Red Hat Enterprise Linux 9buildahUnder investigation
Red Hat Enterprise Linux 9buildah-testsUnder investigation
Red Hat Enterprise Linux 9butaneUnder investigation
Red Hat Enterprise Linux 9conmonUnder investigation
Red Hat Enterprise Linux 9containernetworking-pluginsUnder investigation
Red Hat Enterprise Linux 9git-lfsUnder investigation
Red Hat Enterprise Linux 9go-toolsetUnder investigation
Red Hat Enterprise Linux 9golangUnder investigation
Red Hat Enterprise Linux 9golang-binUnder investigation
Red Hat Enterprise Linux 9golang-docsUnder investigation
Red Hat Enterprise Linux 9golang-miscUnder investigation
Red Hat Enterprise Linux 9golang-raceUnder investigation
Red Hat Enterprise Linux 9golang-srcUnder investigation
Red Hat Enterprise Linux 9golang-testsUnder investigation
Red Hat Enterprise Linux 9grafanaUnder investigation
Red Hat Enterprise Linux 9grafana-pcpUnder investigation
Red Hat Enterprise Linux 9grafana-selinuxUnder investigation
Red Hat Enterprise Linux 9gvisor-tap-vsockUnder investigation
Red Hat Enterprise Linux 9gvisor-tap-vsock-gvforwarderUnder investigation
Red Hat Enterprise Linux 9ignitionUnder investigation
Red Hat Enterprise Linux 9ignition-edgeUnder investigation
Red Hat Enterprise Linux 9ignition-grubUnder investigation
Red Hat Enterprise Linux 9ignition-validateUnder investigation
Red Hat Enterprise Linux 9image-builderUnder investigation
Red Hat Enterprise Linux 9opentelemetry-collectorUnder investigation
Red Hat Enterprise Linux 9osbuild-composerUnder investigation
Red Hat Enterprise Linux 9osbuild-composer-coreUnder investigation
Red Hat Enterprise Linux 9osbuild-composer-dnf-jsonUnder investigation
Red Hat Enterprise Linux 9osbuild-composer-workerUnder investigation
Red Hat Enterprise Linux 9podmanUnder investigation
Red Hat Enterprise Linux 9podman-catatonitUnder investigation
Red Hat Enterprise Linux 9podman-dockerUnder investigation
Red Hat Enterprise Linux 9podman-gvproxyUnder investigation
Red Hat Enterprise Linux 9podman-pluginsUnder investigation
Red Hat Enterprise Linux 9podman-remoteUnder investigation
Red Hat Enterprise Linux 9podman-testsUnder investigation
Red Hat Enterprise Linux 9rhcUnder investigation
Red Hat Enterprise Linux 9rhc-develUnder investigation
Red Hat Enterprise Linux 9skopeoUnder investigation
Red Hat Enterprise Linux 9skopeo-testsUnder investigation
Red Hat Enterprise Linux 9toolboxUnder investigation
Red Hat Enterprise Linux 9toolbox-testsUnder investigation
Red Hat Enterprise Linux 9trustee-guest-componentsUnder investigation
Red Hat Enterprise Linux 9weldr-clientUnder investigation
Red Hat Enterprise Linux 8buildahUnder investigation
Red Hat Enterprise Linux 8buildah-testsUnder investigation
Red Hat Enterprise Linux 8conmonUnder investigation
Red Hat Enterprise Linux 8containernetworking-pluginsUnder investigation
Red Hat Enterprise Linux 8containers-commonUnder investigation
Red Hat Enterprise Linux 8git-lfsUnder investigation
Red Hat Enterprise Linux 8go-toolsetUnder investigation
Red Hat Enterprise Linux 8golangUnder investigation
Red Hat Enterprise Linux 8golang-binUnder investigation
Red Hat Enterprise Linux 8golang-docsUnder investigation
Red Hat Enterprise Linux 8golang-miscUnder investigation
Red Hat Enterprise Linux 8golang-raceUnder investigation
Red Hat Enterprise Linux 8golang-srcUnder investigation
Red Hat Enterprise Linux 8golang-testsUnder investigation
Red Hat Enterprise Linux 8grafanaUnder investigation
Red Hat Enterprise Linux 8grafana-azure-monitorUnder investigation
Red Hat Enterprise Linux 8grafana-cloudwatchUnder investigation
Red Hat Enterprise Linux 8grafana-elasticsearchUnder investigation
Red Hat Enterprise Linux 8grafana-graphiteUnder investigation
Red Hat Enterprise Linux 8grafana-influxdbUnder investigation
Red Hat Enterprise Linux 8grafana-lokiUnder investigation
Red Hat Enterprise Linux 8grafana-mssqlUnder investigation
Red Hat Enterprise Linux 8grafana-mysqlUnder investigation
Red Hat Enterprise Linux 8grafana-opentsdbUnder investigation
Red Hat Enterprise Linux 8grafana-pcpUnder investigation
Red Hat Enterprise Linux 8grafana-postgresUnder investigation
Red Hat Enterprise Linux 8grafana-prometheusUnder investigation
Red Hat Enterprise Linux 8grafana-selinuxUnder investigation
Red Hat Enterprise Linux 8grafana-stackdriverUnder investigation
Red Hat Enterprise Linux 8osbuild-composerUnder investigation
Red Hat Enterprise Linux 8osbuild-composer-coreUnder investigation
Red Hat Enterprise Linux 8osbuild-composer-dnf-jsonUnder investigation
Red Hat Enterprise Linux 8osbuild-composer-workerUnder investigation
Red Hat Enterprise Linux 8podmanUnder investigation
Red Hat Enterprise Linux 8podman-catatonitUnder investigation
Red Hat Enterprise Linux 8podman-dockerUnder investigation
Red Hat Enterprise Linux 8podman-gvproxyUnder investigation
Red Hat Enterprise Linux 8podman-manpagesUnder investigation
Red Hat Enterprise Linux 8podman-pluginsUnder investigation
Red Hat Enterprise Linux 8podman-remoteUnder investigation
Red Hat Enterprise Linux 8podman-testsUnder investigation
Red Hat Enterprise Linux 8rhcUnder investigation
Red Hat Enterprise Linux 8skopeoUnder investigation
Red Hat Enterprise Linux 8skopeo-testsUnder investigation
Red Hat Enterprise Linux 8toolboxUnder investigation
Red Hat Enterprise Linux 8toolbox-testsUnder investigation
Red Hat Enterprise Linux 8weldr-clientUnder investigation
Red Hat Enterprise Linux 7host-meteringUnder investigation
Red Hat Enterprise Linux 7host-metering-selinuxUnder investigation
Red Hat Enterprise Linux 7rhcUnder investigation
Red Hat Enterprise Linux 7rhc-worker-scriptUnder investigation
Alpine Linux 3.24goFixed1.25.2-r0ALPINE-CVE-2025-58186
Alpine Linux 3.23goFixed1.25.2-r0ALPINE-CVE-2025-58186
Alpine Linux 3.22goFixed1.24.8-r0ALPINE-CVE-2025-58186
Go librarystdlibFixed1.24.8GO-2025-4012

What the vendor says

As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.