Skip to content
CVE PROGRAM SOURCE RECORD5.3 Medium

CVE-2025-58186

Lack of limit when parsing cookies can cause memory exhaustion in net/http

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

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Go standard library net/http

Default version status: unaffected

  • 0 to < 1.24.8affected
  • 1.25.0 to < 1.25.2affected

References