HTTP/1 server crash due to MaxBytesReader header race in net/http
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Go standard librarynet/http |
< 1.26.11→ 1.26.11 ≥ 1.27.0-0, < 1.27.4→ 1.27.4 |
1.26.11 1.27.4 |
| Gostdlib |
< 1.26.11→ 1.26.11 ≥ 1.27.0-0, < 1.27.4→ 1.27.4 |
1.26.11 1.27.4 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Alpine Linux ALPINE-CVE-2026-97054 go Fix available
- BellSoft Alpaquita BELL-CVE-2026-97054 go Fix available
- Debian DEBIAN-CVE-2026-97054 golang-1.27, golang-1.26 Fix available
- Ubuntu UBUNTU-CVE-2026-97054 golang-1.27, golang-1.26, golang-1.25 +14 more No fixed version in this record
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
- patch go.dev
- report go.dev
- web groups.google.com
- web pkg.go.dev
- web nvd.nist.gov
- web github.com