CVE-2025-58186: Go Standard Library Net/http

Medium severity, CVSS 5.3. EPSS: 0.7% probability of exploitation activity in the next 30 days.

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

The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.

  • Go Standard Library Net/http, before 1.24.8: fixed in 1.24.8
  • Go Standard Library Net/http, from 1.25.0, before 1.25.2: fixed in 1.25.2

Affected products

Affected packages

Published 2025-10-29. Last modified 2026-10-11.