Rapid7

vulnerability

FreeBSD: VID-7f242313-aea5-11eb-8151-67f74cf7c704 (CVE-2021-31525): go -- net/http: ReadRequest can stack overflow due to recursion with very large headers

Severity
3
CVSS
(AV:N/AC:H/Au:N/C:N/I:N/A:P)
Published
May 6, 2021
Added
Nov 4, 2022
Modified
Mar 25, 2026

Description

The Go project reports: http.ReadRequest can stack overflow due to recursion when given a request with a very large header (~8-10MB depending on the architecture). A http.Server which overrides the default max header of 1MB by setting Server.MaxHeaderBytes to a much larger value could also be vulnerable in the same way.

Solution

freebsd-upgrade-package-go
Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.