ADVISORIES

Go Vulnerability Database

GO-2022-0536

Reset flood in net/http and golang.org/x/net/http

Details

Some HTTP/2 implementations are vulnerable to a reset flood, potentially leading to a denial of service.

Servers that accept direct connections from untrusted clients could be remotely made to allocate an unlimited amount of memory, until the program crashes. The attacker opens a number of streams and sends an invalid request over each stream that should solicit a stream of RST_STREAM frames from the peer. Depending on how the peer queues the RST_STREAM frames, this can consume excess memory, CPU, or both.

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.11.13 (fixed in 1.11.13)
From 1.12.0-0 before 1.12.8 (fixed in 1.12.8)
Gogolang.org/x/net
All versions before 0.0.0-20190813141303-74dc4d7220e7 (fixed in 0.0.0-20190813141303-74dc4d7220e7)

References