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 package | Versions | Reported by |
|---|---|---|
| berriai berriai/litellm | from unspecified up to latest | CVE List |
| berriai litellm | 1.34.41 | CVE List |
| litellm (PyPI) | before 1.35.36 | GitHub Advisory Database, PyPA Advisory Database |
| litellm litellm | before 1.35.19 | NVD |
All scores
| @huntr_ai | 6.5medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H |
| GitHub | 6.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| PyPA Advisory Database | 6.5medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H |
| PyPA Advisory Database | Not scored CVSS:4.0 | CVSS: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
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
| https://huntr.com/bounties/48461d89-cf13-4ad3-a43e-0d37da08fc6c | exploit, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-4888 | advisory | |
| https://github.com/BerriAI/litellm/pull/3193 | web | |
| https://github.com/BerriAI/litellm | package | |
| https://pypi.org/project/litellm | package | |
| https://github.com/advisories/GHSA-3xr8-qfvj-9p9j | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-4888 changed 2024-11-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3xr8-qfvj-9p9j changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-4888 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1540 changed 2026-07-07 | CC-BY-4.0 |