Ohne Score

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

Go standard library net/http Veröffentlicht: (vor 12 Stunden)

Beschreibung

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.

Schwachstellentyp (CWE): CWE-820

Daten: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Wiedergegeben wie in der Quelle, auf Englisch.

Betroffene Produkte und Versionen

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

Referenzen und Patches