CVE-2025-58186

medium

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.

References

https://pkg.go.dev/vuln/GO-2025-4012

https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI

https://go.dev/issue/75672

https://go.dev/cl/709855

http://www.openwall.com/lists/oss-security/2025/10/08/1

Details

Source: Mitre, NVD

Published: 2025-10-29

Updated: 2025-11-04

Risk Information

CVSS v2

Base Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P

Severity: Medium

CVSS v3

Base Score: 5.3

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Severity: Medium

EPSS

EPSS: 0.00018