← CVE Intelligence

CVE-2025-58186

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

Description (CNA)

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 (CNA)

Vendor / productVersions
Go standard library / net/httpaffected 0 before 1.24.8; affected 1.25.0 before 1.25.2

CWE

No CWE identifiers supplied.

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.

CVE

No English description supplied.