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

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-02-01T16:10:30.539Z
- Modified: 2026-09-10T03:50:05.466Z
- Also known as: GHSA-82vx-mm6r-gg8w
- Weaknesses: CWE-436
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- brefphp bref: < 2.1.13
- bref/bref (Packagist): before 2.1.13
- mnapoli bref: before 2.1.13

## Every score

- GitHub_M: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/brefphp/bref/security/advisories/GHSA-82vx-mm6r-gg8w> (exploit, vendor-advisory, web)
- <https://github.com/brefphp/bref/commit/c77d9f5abf021f29fa96b5720b7b84adbd199092> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-24754> (advisory)
- <https://github.com/brefphp/bref> (package)
- <https://github.com/brefphp/bref/blob/2.1.12/src/Event/Http/Psr7Bridge.php#L130-L168> (web)

## Sources

- CVE List: [CVE-2024-24754](https://www.cve.org/CVERecord?id=CVE-2024-24754), CVE Terms of Use, modified 2025-05-15
- GitHub Advisory Database: [GHSA-82vx-mm6r-gg8w](https://github.com/advisories/GHSA-82vx-mm6r-gg8w), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-24754](https://nvd.nist.gov/vuln/detail/CVE-2024-24754), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-24754 · Whole record: https://cve.day/CVE-2024-24754.json · Rebuilt by cve.day 2026-11-25T22:58:36.498Z
