CVE-2024-24754
CRITICAL 9.8CVSS 3.1Bref vulnerable to Body Parsing Inconsistency in Event-Driven Functions
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.
- Published
- 1 Feb 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-436
- Also known as
- GHSA-82vx-mm6r-gg8w
- Sources
- NVDJSONOSV GHSA-82vx-mm6r-gg8wJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mnapoli | brefcpe:2.3:a:mnapoli:bref:*:*:*:*:*:*:*:* |
< 2.1.13 | 2.1.13 |
| OSV | Packagist | bref/bref | < 2.1.13 | 2.1.13 |
References
- https://github.com/brefphp/bref/commit/c77d9f5abf021f29fa96b5720b7b84adbd199092 · Patch, WEB
- https://github.com/brefphp/bref/security/advisories/GHSA-82vx-mm6r-gg8w · Exploit, Vendor Advisory, 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
History
- 25 Nov 2026 20:54 UTC · NVD: first stored (published 1 Feb 2024)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 1 Feb 2024)