CVE-2024-24754 Bref Body Parsing Inconsistency in Event-Driven Functions
Inconsistent multipart body parsing in Bref can lead to application logic errors or undefined behaviors in serverless PHP functions.
- 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-24754?
CVE-2024-24754 is a low-severity vulnerability in brefphp bref, published on 1 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Bref enable serverless PHP on AWS Lambda. When Bref is used with the Event-Driven Function runtime and the handler is a `RequestHandlerInterface`, then the Lambda event is converted to a PSR7 object. During the conversion process, if the request is a MultiPart, each part is parsed and its content added in the `$files` or `$parsedBody` arrays. The conversion process produces a different output compared to the one of plain PHP when keys ending with and open square bracket ([) are used. Based on the application logic the difference in the body parsing might lead to vulnerabilities and/or undefined behaviors. This vulnerability is patched in 2.1.13.
Weakness: CWE-436
Which versions are affected by CVE-2024-24754?
2 open source packages ship an affected version, including bref/bref. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
bref/bref Packagist | All versions | 2.1.13 |
bref/bref Packagist | All versions | 2.1.13 |
Products include Mnapoli Bref.
How do I fix CVE-2024-24754?
Upgrade bref/bref to 2.1.13 or later.
Is CVE-2024-24754 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-24754 exists.
Other vulnerabilities in brefphp bref
Sources
Also known as GHSA-82vx-mm6r-gg8w.