Unscored

CVE-2026-97054HTTP/1 server crash due to MaxBytesReader header race in net/http

Go standard library net/http Published: (17 hours ago)

Description

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.

Weakness (CWE): CWE-820

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Go standard library net/http < 1.26.11, 1.27.0-0 – < 1.27.4

References and patches