AMPHP Denial of Service via HTTP/2 CONTINUATION Frames
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | amphp/http | >= 2.0.0, < 2.1.1, < 1.7.3 | 2.1.1, 1.7.3 |
| Composer package | amphp/http-client | >= 4.0.0-rc10, <= 4.0.0 | no fix |
References
- https://github.com/amphp/http-client/security/advisories/GHSA-w8gf-g2vq-j2f4
- https://github.com/amphp/http/security/advisories/GHSA-qjfw-cvjf-f4fm
- https://nvd.nist.gov/vuln/detail/CVE-2024-2653
- https://github.com/amphp/http/commit/3a33e68a3b53f7279217238e89748cf0cb30b8a6
- https://github.com/amphp/http/commit/881cc33da236fbcd0cb0cf6c2bfc7efcf80ede76
- https://github.com/FriendsOfPHP/security-advisories/blob/master/amphp/http-client/CVE-2024-2653.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/amphp/http/CVE-2024-2653.yaml
- https://github.com/amphp/http
- https://www.kb.cert.org/vuls/id/421644
- http://www.openwall.com/lists/oss-security/2024/04/03/16
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H- Weakness (CWE)
-- Platform
- Composer
- Package
amphp/http, amphp/http-client- Disclosed
- 03.04.2024
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-qjfw-cvjf-f4fm - CC BY 4.0
Vulnerability history: amphp/http-client
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 3
- First → latest
- 04.2024 05.2024
- Without a fix
- 1
- Exploited in attacks
- 0
Severity breakdown
- High 2
- Medium 1
Disclosures per year
- 2024: 3
- 2025: 0
- 2026: 0
-
AMPHP Denial of Service via HTTP/2 CONTINUATION Frames this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.