Arbitrary File Deletion in BerriAI/litellm (berriai berriai/litellm)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.62 % Β· percentile 50 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- @huntr_ai
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-862 β Missing Authorization
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.0 | MEDIUM 6.5 | CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H | @huntr_ai |
| CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H | NVD Β· nvd@nist.gov (Primary) |
| CVSS 3.0 | MEDIUM 6.5 | CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H | NVD Β· security@huntr.dev (Secondary) |
Advisories
- GHSA-3xr8-qfvj-9p9j β Arbitrary file deletion in litellm
- PYSEC-2026-1540 β Arbitrary file deletion in litellm
European references
- ENISA EUVD Β· EUVD-2024-1906
- GCVE Β· GCVE-0-2024-4888
Affected configurations (NVD CPE)
cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*< 1.35.19
Affected products
| Product | Versions |
|---|---|
| berriai Β· berriai/litellm | affected unspecified β€ latest |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST β attribution requested |
| ENISA EUVD | ENISA β reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain β this product uses data from the NVD API but is not endorsed or certified by the NVD |