Skip to content
Medium 5.9

HTTP/1 server crash due to MaxBytesReader header race in net/http

CVE-2026-97054 First seen on SecPulse

Affected packages

PackageAffected → Fixed
Go standard librarynet/http
< 1.26.11→ 1.26.11
≥ 1.27.0-0, < 1.27.4→ 1.27.4
Gostdlib
< 1.26.11→ 1.26.11
≥ 1.27.0-0, < 1.27.4→ 1.27.4

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

For HTTP/1 servers, when MaxBytesReader's limit is exceeded, "Connection: close" header is automatically set without synchronization, which might race with another header being set explicitly in the server handler. As a result, an HTTP/1 server that utilizes MaxBytesReader or MaxBytesHandler can crash due to runtime panic if its handler reads the request body concurrently with writing the response header.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details