{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-4888","id":"CVE-2024-4888","title":"Arbitrary File Deletion in BerriAI/litellm","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 c","descriptionLong":"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.","published":"2024-06-06T18:31:09.735Z","updated":"2026-10-28T02:31:12.839025035Z","reserved":"2024-05-14T22:30:58.413Z","status":"Modified","rejected":false,"assigner":"@huntr_ai","metric":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"4.0","score":null,"vector":"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","rating":"medium","source":"GitHub"},{"version":"4.0","score":null,"vector":"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","rating":"medium","source":"OSV"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H","rating":"medium","source":"@huntr_ai"},{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H","rating":"medium","source":"huntr.dev"},{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H","rating":"medium","source":"OSV"},{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H","rating":"medium","source":"GitHub"}],"rating":"high","products":["berriai/litellm"],"affectedProducts":[{"vendor":"berriai","product":"berriai/litellm","defaultStatus":null,"versions":[{"version":"unspecified","status":"affected","versionType":"custom","lessThanOrEqual":"latest"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"litellm","purl":"pkg:pypi/litellm","ranges":["<1.35.36"],"fixed":["1.35.36"],"advisory":"GHSA-3xr8-qfvj-9p9j"}],"cwes":["CWE-862","CWE-20"],"aliases":["GHSA-3xr8-qfvj-9p9j","PYSEC-2026-1540"],"references":[{"url":"https://huntr.com/bounties/48461d89-cf13-4ad3-a43e-0d37da08fc6c","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/4xxx/CVE-2024-4888.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-4888","tags":["advisory"]},{"url":"https://github.com/BerriAI/litellm/pull/3193","tags":["web"]},{"url":"https://github.com/BerriAI/litellm","tags":["package"]},{"url":"https://pypi.org/project/litellm","tags":["package"]},{"url":"https://github.com/advisories/GHSA-3xr8-qfvj-9p9j","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00619,"epssPercentile":0.5046,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-4888","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-4888","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-4888","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-3xr8-qfvj-9p9j","ok":true,"note":"GHSA-3xr8-qfvj-9p9j"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-4888","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}