VDB
Sign up
HIGH7.5

GO-2026-6617

HTTP/2 server crash due to HPACK encoder race in net/http

Quick fix

GO-2026-6617 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.26.9

Details

HTTP/2 servers could end up crashing due to inadvertently modifying its HPACK encoder concurrently. This happens because the server modifies the HPACK encoder from two goroutines without synchronization: one uses the encoder to encode a HEADERS frame as part of a response sent to a client and the other modifies the encoder's table size when handling a SETTINGS frame containing SETTINGS_HEADER_TABLE_SIZE that a client sends. A malicious client can repeatedly send a request while changing the header table size to crash the server.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 0Fixed in: 1.26.9
Fixgo get stdlib@v1.26.9
Go/stdlib
Introduced in: 1.27.0-0Fixed in: 1.27.2
Fixgo get stdlib@v1.27.2
Go/golang.org/x/net
Introduced in: 0Fixed in: 0.60.0
Fixgo get golang.org/x/net@v0.60.0

References