ADVISORIES

GitHub Advisory Database

GHSA-xrjj-mj9h-534m

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

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.

Affected packages

EcosystemPackageAffected versions
Gogolang.org/x/net/http2
All versions before 0.4.0 (fixed in 0.4.0)
Gogolang.org/x/net
All versions before 0.4.0 (fixed in 0.4.0)

References