Skip to content
5.3 Medium

CVE-2025-58186 Despite HTTP headers having a default limit of 1MB, the number of cookies that can be parsed does not have a limit

Description

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.

Affected products and versions

Product Affected versions Fixed in
net/http 1.25 1.25.0 → < 1.25.2 1.25.2
net/http 1.24 earliest → < 1.24.8 1.24.8

References

Timeline

  1. Published
  2. Last modified
The 26 CVEs of net/http →
Track this CVE