GitHub Advisoryadvisory · Packagist
GHSA-qjfw-cvjf-f4fm AMPHP Denial of Service via HTTP/2 CONTINUATION Frames
HIGH
Official page ↗
- Aliases
- CVE-2024-2653
- Ecosystem
- Packagist
- Packages
- amphp/http, amphp/http-client
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- Reviewed
- 2024-04-03
Affected packages
• Packagist amphp/http: >= 2.0.0, < 2.1.1 → fixed in 2.1.1
• Packagist amphp/http: < 1.7.3 → fixed in 1.7.3
• Packagist amphp/http-client: >= 4.0.0-rc10, <= 4.0.0 (no fix yet)
Description
`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.
Related
Alias · CVE (1)
- CVE-2024-2653 amphp/http will collect CONTINUATION frames in an unbounded buffer and will not check a limit until it has received the set END_HEADERS… vulnerability
References
- https://github.com/amphp/http-client/security/advisories/GHSA-w8gf-g2vq-j2f4 web
- https://github.com/amphp/http/security/advisories/GHSA-qjfw-cvjf-f4fm web
- https://nvd.nist.gov/vuln/detail/CVE-2024-2653 advisory
- https://github.com/amphp/http/commit/3a33e68a3b53f7279217238e89748cf0cb30b8a6 web
- https://github.com/amphp/http/commit/881cc33da236fbcd0cb0cf6c2bfc7efcf80ede76 web
- https://github.com/FriendsOfPHP/security-advisories/blob/master/amphp/http-client/CVE-2024-2653.yaml web
- https://github.com/FriendsOfPHP/security-advisories/blob/master/amphp/http/CVE-2024-2653.yaml web
- https://github.com/amphp/http package
- https://www.kb.cert.org/vuls/id/421644 web
- http://www.openwall.com/lists/oss-security/2024/04/03/16 web