CVE-2024-24752
MEDIUM 6.5CVSS 3.1Bref's Uploaded Files Not Deleted 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 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.
- Published
- 1 Feb 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-400CWE-770
- Also known as
- GHSA-x4hh-frx8-98r5
- Sources
- NVDJSONOSV GHSA-x4hh-frx8-98r5JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
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/350788de12880b6fd64c4c318ba995388bec840e · Patch, WEB
- https://github.com/brefphp/bref/security/advisories/GHSA-x4hh-frx8-98r5 · Exploit, Vendor Advisory, 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
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)