# CVE-2024-24752: Bref Uploaded Files Not Deleted in Event-Driven Functions

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- 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.75%, higher than 56% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-02-01T16:10:07.976Z
- Modified: 2026-09-10T03:50:00.309Z
- Also known as: GHSA-x4hh-frx8-98r5
- Weaknesses: CWE-400, CWE-770
- 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 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.

(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 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/brefphp/bref/security/advisories/GHSA-x4hh-frx8-98r5> (exploit, vendor-advisory, web)
- <https://github.com/brefphp/bref/commit/350788de12880b6fd64c4c318ba995388bec840e> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-24752> (advisory)
- <https://github.com/brefphp/bref> (package)
- <https://github.com/brefphp/bref/blob/2.1.12/src/Event/Http/Psr7Bridge.php#L94-L125> (web)

## Sources

- CVE List: [CVE-2024-24752](https://www.cve.org/CVERecord?id=CVE-2024-24752), CVE Terms of Use, modified 2024-10-17
- GitHub Advisory Database: [GHSA-x4hh-frx8-98r5](https://github.com/advisories/GHSA-x4hh-frx8-98r5), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-24752](https://nvd.nist.gov/vuln/detail/CVE-2024-24752), Public domain, modified 2026-06-17

---

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