Double flow control refund on HTTP/2 server streams in net/http
Go standard library net/http · Go standard library net/http/internal/http2 · golang.org/x/net/http2
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Go standard library net/http |
| No fix yet |
| Go standard library net/http/internal/http2 |
| No fix yet |
| golang.org/x/net golang.org/x/net/http2 |
| No fix yet |
Original description
The HTTP/2 server can refund connection-level flow control twice for the same data: Once when a client resets a stream (refunding data for any sent-but-unread portion of the stream), and again when a request handler reads the buffered data. A malicious client can exploit this to bypass the configured connection-level flow control limit (MaxReceiveBufferPerConnection). Total buffered data is still limited by the concurrent stream limit and stream-level flow control.
From the CVE record · Go