CVE-2025-58186
Lack of limit when parsing cookies can cause memory exhaustion in net/http
5.3
MEDIUM
CVSS 3.1
EPSS 0.04%
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.
How to fix CVE-2025-58186
To remediate CVE-2025-58186, upgrade the affected package to a fixed version below.
- —upgrade to 1.24.8 or later
- —no fix listed
- —no fix listed
- —no fix listed
- —upgrade to 1.25.2-1 or later
- —upgrade to 1.24.8 or later
Is CVE-2025-58186 being exploited?
Low — EPSS is 0.0%, meaning exploitation activity has not been observed at scale.
Affected packages (6)
- from 0, < 1.24.8, >= 1.25.0, < 1.25.2
- from 0
- from 0
- from 0
- from 0, < 1.25.2-1
- from 0, < 1.24.8, >= 1.25.0, < 1.25.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |