What’s Vulnerable › Vulnerabilities

CVE-2022-41717: Excessive memory growth in net/http and golang.org/x/net/http2

Description

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 products

How to fix

Upgrade to a fixed version: Go 1.18.9, 1.19.4; Golang Http2 0.4.0; Golang.Org/X/Net 0.4.0; Golang.Org/X/Net/Http2 0.4.0; Go Stdlib 1.18.9, 1.19.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-41717 or the next vulnerability affects your stack