Threat Feed

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

Exploitation: None known · CVSS 5.9 Medium · Unauthenticated · Published 2026-11-11

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.

Fix

No fixed version in the CVE record yet. Follow the vendor advisory.

Affected versions

ProductVulnerableFixed in
net/http0 before 1.26.11Not listed
net/http1.27.0-0 before 1.27.4Not listed

Seen in 2 sources