High severity · published Jun 6, 2024
CVE-2024-4888
Arbitrary File Deletion in BerriAI/litellm
8.1
CVSS
0.6%
EPSS
No
On KEV
Description
BerriAI's litellm, in its latest version, is vulnerable to arbitrary file deletion due to improper input validation on the `/audio/transcriptions` endpoint. An attacker can exploit this vulnerability by sending a specially crafted request that includes a file path to the server, which then deletes the specified file without proper authorization or validation. This vulnerability is present in the code where `os.remove(file.filename)` is used to delete a file, allowing any user to delete critical files on the server such as SSH keys, SQLite databases, or configuration files.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
None
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 50% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
BE
berriai/litellm · berriai
through latest · source: vendor
LI
Litellm · Litellm
before 1.35.19 · source: NVD, CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-4888
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-4888
Exploit
https://huntr.com/bounties/48461d89-cf13-4ad3-a43e-0d37da08fc6c
More from berriai/litellm
9.8
CVE-2024-5751
Remote Code Execution in BerriAI/litellm
9.8
CVE-2024-4264
Remote Code Execution in berriai/litellm
9.8
CVE-2024-2952
Server-Side Template Injection in BerriAI/litellm
8.8
CVE-2024-6825
Remote Code Execution in BerriAI/litellm
8.1
CVE-2025-0628
Improper Authorization in BerriAI/litellm
