{"id":"CVE-2024-4888","published":"2024-06-06T18:31:09Z","modified":"2024-11-03T18:27:22Z","title":"Arbitrary File Deletion in BerriAI/litellm","vendor":"berriai","product":"berriai/litellm","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00619,"percentile":0.50586,"provenance":"source"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"}],"references":[{"url":"https://huntr.com/bounties/48461d89-cf13-4ad3-a43e-0d37da08fc6c","tags":[]}],"priority":{"score":14.7,"factors":[{"name":"EPSS percentile","points":10.12},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"berriai","affectedVersions":[{"vendor":"berriai","product":"berriai/litellm","versions":[">= unspecified, <= latest"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-07T19:29:54.576611Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"litellm","vulnerableRanges":["<1.35.36"],"patched":["1.35.36"],"from":["GHSA-3xr8-qfvj-9p9j","PYSEC-2026-1540"],"provenance":"source"}],"summary":{"text":"The flaw is an arbitrary file deletion vulnerability in berriai/litellm, caused by improper input validation on the /audio/transcriptions endpoint, where the code passes a user-supplied filename directly to os.remove. An attacker who can reach that endpoint and hold privileges on the server can send a crafted request naming a file path, causing the server to delete the specified file without authorization or validation, which could include critical files such as SSH keys, SQLite databases, or configuration files.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:10Z"},"euvd":{"id":"EUVD-2024-1906","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-2952","published":"2024-04-10","fixed":"1.34.42","kev":false,"link":{"from":"CVE-2024-2952","to":"CVE-2024-4888","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:litellm","fromFixed":"1.34.42","toFixed":"1.35.36","daysApart":57}]}},{"cve":"CVE-2024-4888","published":"2024-06-06","fixed":"1.35.36","kev":false},{"cve":"CVE-2024-5225","published":"2024-06-06","fixed":"1.40.0","kev":false,"link":{"from":"CVE-2024-4888","to":"CVE-2024-5225","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:litellm","fromFixed":"1.35.36","toFixed":"1.40.0","daysApart":0}]}},{"cve":"CVE-2024-5710","published":"2024-06-27","fixed":"1.40.15","kev":false},{"cve":"CVE-2024-5751","published":"2024-06-27","fixed":"1.40.16","kev":false}],"package":"PyPI:litellm"}}