BIT-golang-2025-58186

vendorUSosv

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

view advisory published 2025-11-06Licence: per source

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.

01

describes (1)

Related CVEs.

IDseverity exploitable
CVE-2025-58186US——
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 attacke…
02

references

External citations — patches, advisories, analysis.

scry

Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.

Free scan