Bref Body Parsing Inconsistency in Event-Driven Functions
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| brefphp | bref | before 2.1.13 | 2.1.13 | Patch available | CNA |
| — | bref/bref (Packagist) | before 2.1.13 | 2.1.13 | Patch available | GHSA-82vx-mm6r-gg8w |
- bref Vendorbrefphp Affected before 2.1.13 Fixed in 2.1.13 Patch available CNA
- bref/bref (Packagist) Vendor— Affected before 2.1.13 Fixed in 2.1.13 Patch available GHSA-82vx-mm6r-gg8w
Remediation
- Fix · CNA bref (brefphp) Fixed in 2.1.13
- Fix · GHSA-82vx-mm6r-gg8w bref/bref (Packagist) Fixed in 2.1.13 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-24754
- 2026-10-03 Alias added: GHSA-82vx-mm6r-gg8w
References
More brefphp Bref vulnerabilities
- TI-2024-16270 Bref Multiple Value Headers Not Supported in ApiGatewayFormatV2 CVSS 3.1MEDIUM 6.5
- TI-2024-16269 Bref Uploaded Files Not Deleted in Event-Driven Functions CVSS 3.1MEDIUM 6.5
- TI-2024-19355 Slow String Operations via MultiPart Requests in Event-Driven Functions CVSS 3.1MEDIUM 5.3
Sources
- CVE-2024-24754 · CVE Program
- CVE-2024-24754 · NVD
- FIRST EPSS
- GHSA-82vx-mm6r-gg8w · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences