CVE-2024-4888
JSON

6.5medium

Arbitrary File Deletion in BerriAI/litellm

Severity
6.5medium CVSS:3.0 by @huntr_ai
Exploit likelihood
0.78% (higher than 52% of CVEs)
Published
Last changed
Assigned by
@huntr_ai
Also known as
GHSA-3xr8-qfvj-9p9jPYSEC-2026-1540

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.

Affected

Product or packageVersionsReported by
berriai berriai/litellmfrom unspecified up to latestCVE List
berriai litellm1.34.41CVE List
litellm (PyPI)before 1.35.36GitHub Advisory Database, PyPA Advisory Database
litellm litellmbefore 1.35.19NVD

All scores

@huntr_ai6.5medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H
GitHub6.5high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
PyPA Advisory Database6.5medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

Classification

CWE-20CWE-862

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Litellm de BerriAI, en su última versión, es vulnerable a la eliminación arbitraria de archivos debido a una validación de entrada incorrecta en el endpoint `/audio/transcriptions`. Un atacante puede aprovechar esta vulnerabilidad enviando una solicitud especialmente manipulada que incluya una ruta de archivo al servidor, que luego elimina el archivo especificado sin la autorización o validación adecuada. Esta vulnerabilidad está presente en el código donde se usa `os.remove(file.filename)` para eliminar un archivo, lo que permite a cualquier usuario eliminar archivos críticos en el servidor, como claves SSH, bases de datos SQLite o archivos de configuración.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-4888 changed 2024-11-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-3xr8-qfvj-9p9j changed 2026-09-10CC-BY-4.0
NVDCVE-2024-4888 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1540 changed 2026-07-07CC-BY-4.0