CVE-2024-24752
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network with a low-privilege account. High risk of service disruption.
- Exploit odds
- 0.8% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 0.8% in the next 30 days (EPSS).
- Severity: 6.5 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 0.8% · EPSS, next 30 days
- Weakness
- CWE-400 · Uncontrolled resource consumption
- Record status
- Modified
Affected
- Mnapoli Bref < 2.1.13
Attack profile CVSS 3.1 · 6.5
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Raw vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2024-24752.md and follow it. Check whether this project is affected by CVE-2024-24752. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/brefphp/bref/commit/350788de12880b6fd64c4c318ba995388bec840e
- https://github.com/brefphp/bref/security/advisories/GHSA-x4hh-frx8-98r5
- https://github.com/brefphp/bref/commit/350788de12880b6fd64c4c318ba995388bec840e
- https://github.com/brefphp/bref/security/advisories/GHSA-x4hh-frx8-98r5
References
- https://github.com/brefphp/bref/commit/350788de12880b6fd64c4c318ba995388bec840e
- https://github.com/brefphp/bref/security/advisories/GHSA-x4hh-frx8-98r5
- https://github.com/brefphp/bref/commit/350788de12880b6fd64c4c318ba995388bec840e
- https://github.com/brefphp/bref/security/advisories/GHSA-x4hh-frx8-98r5