Skip to main content
Menu
Advisories

HTTP/2 receive flow-control windows are not enforced on incoming DATA

GHSA-VGC4-F57M-QGCPPublished Updated GitHub

Description

The HTTP/2 driver did not enforce flow-control windows on incoming DATA frames. A client that ignored flow control could keep sending request body data after the server's advertised window was used up, and the server would buffer all of it.

This issue is mitigated by the request body size limit. With a default 128 KiB body size limit, the expected impact of this issue is small. Applications that raise the limit, such as upload endpoints, could be made to buffer the full raised limit for every concurrent stream, which could exhaust memory and crash the server process. Following RFC 9113, the server now treats a DATA frame that exceeds the window as a FLOW_CONTROL_ERROR and resets the stream or closes the connection.

Affected versions

References

GitHub · amphp/http-server