Read the docs

Race condition in Go net/http can crash HTTP/1 servers

Priority LOW 26CWE-362Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
—
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA.

Summary

The Go standard library net/http package, from 0 before 1.26.11 and from 1.27.0-0 before 1.27.4, has a race condition (CWE-362) in HTTP/1 servers that use MaxBytesReader or MaxBytesHandler. When the body limit is exceeded, the Connection: close header is set without synchronization, which can race with a header the handler sets and cause a runtime panic. A remote unauthenticated attacker can crash the server, but the crash requires a handler that reads the request body while writing the response header.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00171 6th percentileScored 2026-11-16
Fix Fixed net/http (Go standard library): 1.26.11, 1.27.4

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Go standard librarynet/httpbefore 1.26.11; 1.27.0-0 to before 1.27.41.26.11, 1.27.4Patch availableCNA
  • net/http VendorGo standard library Affected before 1.26.11; 1.27.0-0 to before 1.27.4 Fixed in 1.26.11, 1.27.4 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*——Go standard library

Remediation

Upgrade the Go standard library net/http to version 1.26.11 or 1.27.4, which fix the flaw.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

  • Fix · CNA net/http (Go standard library) Fixed in 1.26.11, 1.27.4

Timeline

  1. 2026-11-11 Threatist record created from CVE-2026-97054
  2. 2026-11-11 Alias added: GHSA-rg98-f588-44xg
  3. 2026-11-16 CVSS score added · CISA ADP
  4. 2026-11-16 Weakness changed · CISA ADP
  5. 2026-11-16 CISA SSVC decision points changed

References

  • TI-2020-00578 Spoofing in Windows CryptoAPI ECC certificate validation KEVCVSS 3.1HIGH 8.1
  • TI-2023-23979 HTTP/2 request cancellation lets attackers exhaust server resources KEVCVSS 3.1HIGH 7.5
  • TI-2023-24278 HTTP/2 CONTINUATION flood in net/http CVSS 3.1HIGH 7.5
  • TI-2018-05208 The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used… CVSS 3.1HIGH 8.8
  • TI-2024-16309 Panic when parsing invalid palette-color images in golang.org/x/image CVSS 3.1HIGH 7.5
  • TI-2022-20112 Request smuggling due to improper request handling in golang.org/x/net/http2/h2c CVSS 3.1HIGH 7.5
See all 309 →

Sources