UNKNOWN Go

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

GO-2025-4012 · BIT-golang-2025-58186 · CVE-2025-58186

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes