Skip to main content
← All vulnerabilities
CVE-2024-24754GHSA-82VX-MM6R-GG8W

Bref Body Parsing Inconsistency in Event-Driven Functions

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.1.13
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • brefphp bref

    fixed in 2.1.13

  • bref/brefPackagist

    fixed in 2.1.13

References 2

GitHub · brefphp/bref