NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2024-2653: AMPHP Denial of Service via HTTP/2 CONTINUATION Frames

highCVSS 3.1 8.2GHSA-qjfw-cvjf-f4fm

amphp/http will collect HTTP/2 CONTINUATION frames in an unbounded buffer and will not check the header size limit until it has received the ENDHEADERS flag, resulting in an OOM crash. amphp/http-client and amphp/http-server are indirectly affected if they're used with an unpatched version of amphp/http. Early versions of amphp/http-client with HTTP/2 support (v4.0.0-rc10 to 4.0.0) are also directly affected.

Published Apr 3, 2024 · Updated May 2, 2024

Affected packages

amphp/http

Ecosystem
Composer (PHP)
Affected
>= 2.0.0, <= 2.1.0
Fixed in
2.1.1
Check
composer show amphp/http

amphp/http

Ecosystem
Composer (PHP)
Affected
<= 1.7.2
Fixed in
1.7.3
Check
composer show amphp/http

amphp/http-client

Ecosystem
Composer (PHP)
Affected
>= 4.0.0-rc10, <= 4.0.0
Fixed in
No patched version yet
Check
composer show amphp/http-client

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

amphp/http will collect HTTP/2 CONTINUATION frames in an unbounded buffer and will not check the header size limit until it has received the END_HEADERS flag, resulting in an OOM crash. amphp/http-client and amphp/http-server are indirectly affected if they're used with an unpatched version of amphp/http. Early versions of amphp/http-client with HTTP/2 support (v4.0.0-rc10 to 4.0.0) are also directly affected.

Acknowledgements

Thank you to Bartek Nowotarski for reporting the vulnerability.

Credited to bartekn.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries