Vulnerability 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 for each which contains a file, it is extracted and saved in `/tmp` with a random filename starting with `bref_upload_`. The flow mimics what plain PHP does but it does not delete the temporary files when the request has been processed. An attacker could fill the Lambda instance disk by performing multiple MultiPart requests containing files. This vulnerability is patched in 2.1.13.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Mnapoli | Bref | < 2.1.13 |
Related Weaknesses (CWE)
References
- https://github.com/brefphp/bref/commit/350788de12880b6fd64c4c318ba995388bec840ePatch
- https://github.com/brefphp/bref/security/advisories/GHSA-x4hh-frx8-98r5ExploitVendor Advisory
- https://github.com/brefphp/bref/commit/350788de12880b6fd64c4c318ba995388bec840ePatch
- https://github.com/brefphp/bref/security/advisories/GHSA-x4hh-frx8-98r5ExploitVendor Advisory
FAQ
What is CVE-2024-24752?
CVE-2024-24752 is a vulnerability with a CVSS score of 6.5 (MEDIUM). 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. ...
How severe is CVE-2024-24752?
CVE-2024-24752 has been rated MEDIUM with a CVSS base score of 6.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-24752?
Check the references section above for vendor advisories and patch information. Affected products include: Mnapoli Bref.