amphp/http-client Denial of Service via HTTP/2 CONTINUATION Frames
Package
Affected versions
>= 4.0.0-rc10, <= 4.0.0
Patched versions
4.1.0-rc1
Description
Published to the GitHub Advisory Database
Apr 3, 2024
Reviewed
Apr 3, 2024
Last updated
Apr 3, 2024
Early versions of
amphp/http-client
with HTTP/2 support (v4.0.0-rc10 to 4.0.0) will collect HTTP/2CONTINUATION
frames in an unbounded buffer and will not check the header size limit until it has received theEND_HEADERS
flag, resulting in an OOM crash. Later versions ofamphp/http-client
(v4.1.0-rc1 and up) depend onamphp/http
for HTTP/2 processing and will therefore need an updated version ofamphp/http
, see GHSA-qjfw-cvjf-f4fm.Acknowledgements
Thank you to Bartek Nowotarski for reporting the vulnerability.
References