LiteLLMPublished 6 Jun 2024NVD status: Modified

CVE-2024-4888

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
< 1.35.36
from the GitHub-reviewed advisory GHSA-3xr8-qfvj-9p9j
Fixed in1.35.36
WeaknessCWE-862
CISA KEVnot listed

Versions, checked against NVD

NVD's analysis reads < 1.35.19. The ranges above come from the GitHub-reviewed advisory GHSA-3xr8-qfvj-9p9j. The page and the scanner follow it: no more trusted source, and no two sources together, say otherwise (see the methodology).

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.

What to do

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

Sources

Read more