CVE-2024-24752 json
Bref Uploaded Files Not Deleted in Event-Driven Functions
published 2024-02-01 2 y ago modified 2026-09-10 1 mo ago also GHSA-x4hh-frx8-98r5 , EUVD-2024-0757
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 55%
- public exploits
- 0
- none known
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 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.
Patch / fix
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.75% chance of exploitation in the next 30 days, higher than 55% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/brefphp/bref/security/advisories/GHSA-x4hh-frx8-98r5 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | bref/bref | <2.1.13 |
2.1.13 |
Affected products
- brefphp bref
Classification
References
-
github.com
/brefphp/bref/commit/350788de12880b6fd64c4c318ba995388bec840e
web, patch
-
github.com
/brefphp/bref/security/advisories/GHSA-x4hh-frx8-98r5
web, exploit, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-24752
advisory
-
github.com
/brefphp/bref
package
-
github.com
/brefphp/bref/blob/2.1.12/src/Event/Http/Psr7Bridge.php#L94-L125
web
Sources
- CVE List CVE-2024-24752
- GitHub Advisory GHSA-x4hh-frx8-98r5
- NVD CVE-2024-24752
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.