CVE-2024-24754 Bref Body Parsing Inconsistency in Event-Driven Functions

Low 3.7 Published Updated

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.

PackageAffectedFixed in
bref/bref PackagistAll versions2.1.13
bref/bref PackagistAll versions2.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.

Sources

Also known as GHSA-82vx-mm6r-gg8w.

Is CVE-2024-24754 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free