ADVISORIES

Go Vulnerability Database

GO-2026-6089

Apply ReadHeaderTimeout when doing unencrypted HTTP/2 check in net/http

Details

When a server is configured to support unencrypted HTTP/2, it reads a few bytes from each new connection to see if they contain the HTTP/2 client preface. ReadHeaderTimeout is unexpectedly not being applied when doing this.

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.25.13 (fixed in 1.25.13)
From 1.26.0-0 before 1.26.6 (fixed in 1.26.6)
From 1.27.0-0 before 1.27.0-rc.3 (fixed in 1.27.0-rc.3)

References