CVE 5.3 MEDIUM

Lack of limit when parsing cookies can cause memory exhaustion in net/http_CVE-2025-58186

5.3 / 10
MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

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.

Basic Information

ID CVE-2025-58186
Source Go
Published Oct 29, 2025 at 22:10
Modified Oct 30, 2025 at 14:24

Affected Product

Vendor Go standard library
Product net/http
Affected Versions Go standard library net/http 0
Go standard library net/http 1.25.0

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.