CVE-2024-2653 CVE-2024-2653
An attacker can cause an out-of-memory crash in the amphp/http library by sending unbounded CONTINUATION frames, leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-2653?
CVE-2024-2653 is a high-severity denial of service vulnerability in amphp/http, published on 3 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2024-2653?
6 open source packages ship an affected version, including amphp/http and amphp/http-client.
| Package | Affected | Fixed in |
|---|---|---|
amphp/http Packagist | All versions | 1.7.3 |
amphp/http Packagist | All versions | 1.7.3 |
amphp/http Packagist | From 2.0.0 | 2.1.1 |
amphp/http Packagist | From 2.0.0 | 2.1.1 |
amphp/http-client Packagist | From 4.0.0-rc10 to 4.0.0 | None |
amphp/http-client Packagist | From 4.0.0-rc10 to 4.0.0 | None |
How do I fix CVE-2024-2653?
Upgrade amphp/http to a fixed version for your release line: 1.7.3 or 2.1.1.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-2653 being exploited?
There is no known exploitation of CVE-2024-2653 in the wild and no public exploit code.
Sources
Also known as GHSA-qjfw-cvjf-f4fm.