# CVE-2024-4888: Arbitrary File Deletion in BerriAI/litellm

- Severity: Medium 6.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 52% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-06T18:31:09.735Z
- Modified: 2026-09-10T03:49:18.835Z
- Also known as: GHSA-3xr8-qfvj-9p9j, PYSEC-2026-1540
- Weaknesses: CWE-20, CWE-862
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

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

(As written by CVE List.)

## Affected

- berriai berriai/litellm: from unspecified up to latest
- berriai litellm: 1.34.41
- litellm (PyPI): before 1.35.36
- litellm litellm: before 1.35.19

## Every score

- @huntr_ai: CVSS:3.0 6.5 Medium `CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.0 6.5 High `CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- PyPA Advisory Database: CVSS:3.0 6.5 Medium `CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H`
- PyPA Advisory Database: 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`

## 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

- CVE List: [CVE-2024-4888](https://www.cve.org/CVERecord?id=CVE-2024-4888), CVE Terms of Use, modified 2024-11-03
- GitHub Advisory Database: [GHSA-3xr8-qfvj-9p9j](https://github.com/advisories/GHSA-3xr8-qfvj-9p9j), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-4888](https://nvd.nist.gov/vuln/detail/CVE-2024-4888), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1540](https://osv.dev/vulnerability/PYSEC-2026-1540), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-4888 · Whole record: https://cve.day/CVE-2024-4888.json · Rebuilt by cve.day 2026-11-25T22:58:41.518Z
