highCVSS 8.1NVD status: Modified

CVE-2024-4888

LiteLLM: BerriAI's litellm, in its latest version, is vulnerable to arbitrary file deletion due to improper input validation on the `/audio/transcriptions` endpoint.

ComponentLiteLLM
Severityhigh (CVSS 8.1)
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Published (NVD)2024-06-06
Last modified2026-06-17
Affected versions
litellm < 1.35.19
Fixed in1.35.19
WeaknessCWE-862
CISA KEVnot listed

NVD 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.

Does CVE-2024-4888 hit the version you run?Paste your docker-compose.yml, requirements.txt or package.json. The scanner checks your pinned versions against this CVE and every other one we track for LiteLLM.
Check my stack

What to do

  • Upgrade LiteLLM to 1.35.19 or later.
  • Do not expose the component's API or UI to the internet without authentication in front of it.

Sources

Read more

Other LiteLLM CVEs

All LiteLLM CVEs