CVE-2024-24754 json
Bref Body Parsing Inconsistency in Event-Driven Functions
published 2024-02-01 2 y ago modified 2026-09-10 1 mo ago also GHSA-82vx-mm6r-gg8w , EUVD-2024-0566
- cvss
- 3.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 49%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.62% chance of exploitation in the next 30 days, higher than 49% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/brefphp/bref/security/advisories/GHSA-82vx-mm6r-gg8w referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | bref/bref | <2.1.13 |
2.1.13 |
Affected products
- brefphp bref
Classification
- Weakness
-
- CWE-436 Interpretation Conflict
References
-
github.com
/brefphp/bref/commit/c77d9f5abf021f29fa96b5720b7b84adbd199092
web, patch
-
github.com
/brefphp/bref/security/advisories/GHSA-82vx-mm6r-gg8w
web, exploit, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-24754
advisory
-
github.com
/brefphp/bref
package
-
github.com
/brefphp/bref/blob/2.1.12/src/Event/Http/Psr7Bridge.php#L130-L168
web
Sources
- CVE List CVE-2024-24754
- GitHub Advisory GHSA-82vx-mm6r-gg8w
- NVD CVE-2024-24754
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.