{"id":"CVE-2024-24752","published":"2024-02-01T16:10:07Z","modified":"2024-10-17T16:09:09Z","title":"Bref Uploaded Files Not Deleted in Event-Driven Functions","vendor":"brefphp","product":"bref","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0075,"percentile":0.55859,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/brefphp/bref/security/advisories/GHSA-x4hh-frx8-98r5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/brefphp/bref/commit/350788de12880b6fd64c4c318ba995388bec840e","tags":["x_refsource_MISC"]}],"priority":{"score":15.7,"factors":[{"name":"EPSS percentile","points":11.17},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"brefphp","affectedVersions":[{"vendor":"brefphp","product":"bref","versions":["< 2.1.13"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-02-05T17:05:38.753378Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"bref/bref","vulnerableRanges":["<2.1.13"],"patched":["2.1.13"],"from":["GHSA-x4hh-frx8-98r5"],"provenance":"source"}],"summary":{"text":"The Bref serverless PHP framework's Event-Driven Function runtime, when a handler implements RequestHandlerInterface, converts Lambda events into PSR-7 requests and saves each uploaded file from a multipart request to /tmp without deleting it afterward. An attacker with network access and low-privilege authentication can send repeated multipart requests containing files, exhausting the Lambda instance's disk space and degrading availability; no user interaction or special configuration is required beyond that handler setup.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:20Z"},"euvd":{"id":"EUVD-2024-0757","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-brefphp-bref-cve-2024-24752","children":[{"from":"CVE-2024-24752","to":"CVE-2024-24754","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/Event/Http/Psr7Bridge.php"],"commits":["https://github.com/brefphp/bref/commit/350788de12880b6fd64c4c318ba995388bec840e","https://github.com/brefphp/bref/commit/c77d9f5abf021f29fa96b5720b7b84adbd199092"],"basis":"rarely changed file"}]}]}}