VDB
Sign up
MEDIUM5.3

GHSA-xrjj-mj9h-534m

golang.org/x/net/http2 vulnerable to possible excessive memory growth

Quick fix

GHSA-xrjj-mj9h-534m — golang.org/x/net/http2: upgrade to the fixed version with the command below.

go get golang.org/x/net/http2@v0.4.0

Details

An attacker can cause excessive memory growth in a Go server accepting HTTP/2 requests. HTTP/2 server connections contain a cache of HTTP header keys sent by the client. While the total number of entries in this cache is capped, an attacker sending very large keys can cause the server to allocate approximately 64 MiB per open connection.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/golang.org/x/net/http2
Introduced in: 0Fixed in: 0.4.0
Fixgo get golang.org/x/net/http2@v0.4.0
Go/golang.org/x/net
Introduced in: 0Fixed in: 0.4.0
Fixgo get golang.org/x/net@v0.4.0

References