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](https://nowotarski.info/) for reporting the vulnerability.
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2024-2653US | — | — | ||
amphp/http will collect CONTINUATION frames in an unbounded buffer and will not check a limit until it has received the set END_HEADERS flag, resulting in an OOM crash. | ||||
references
External citations — patches, advisories, analysis.
- http://www.openwall.com/lists/oss-security/2024/04/03/16WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/amphp/http-client/CVE-2024-2653.yamlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/amphp/http/CVE-2024-2653.yamlWEB
- https://github.com/amphp/httpPACKAGE
- https://github.com/amphp/http-client/security/advisories/GHSA-w8gf-g2vq-j2f4WEB
- https://github.com/amphp/http/commit/3a33e68a3b53f7279217238e89748cf0cb30b8a6WEB
- https://github.com/amphp/http/commit/881cc33da236fbcd0cb0cf6c2bfc7efcf80ede76WEB
- https://github.com/amphp/http/security/advisories/GHSA-qjfw-cvjf-f4fmWEB
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan