Launch Week Day 1: Announcing Security Design Review
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

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