{"id":"CVE-2024-4888","aliases":["CVE-2024-4888","GHSA-3xr8-qfvj-9p9j","PYSEC-2026-1540"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary File Deletion in BerriAI/litellm","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-06-06T18:31:09.735Z","modified":"2026-09-10T03:49:18.835Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H","score":6.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","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"}],"cwes":["CWE-20","CWE-862"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"latest","status":"affected"}],"vendor":"berriai","product":"berriai/litellm","source":"cvelist"},{"ranges":[{"version":"1.34.41","status":"affected"}],"vendor":"berriai","product":"litellm","cpe":"cpe:2.3:a:berriai:litellm:1.34.41:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.35.36"}],"ecosystem":"PyPI","package":"litellm","purl":"pkg:pypi/litellm","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.35.19"}],"vendor":"litellm","product":"litellm","cpe":"cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.35.36"}],"ecosystem":"PyPI","package":"litellm","purl":"pkg:pypi/litellm","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/48461d89-cf13-4ad3-a43e-0d37da08fc6c","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-4888","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/BerriAI/litellm/pull/3193","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/BerriAI/litellm","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/litellm","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-3xr8-qfvj-9p9j","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-06-07T19:29:54.576Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-4888","url":"https://www.cve.org/CVERecord?id=CVE-2024-4888","licence":"CVE Terms of Use","modified":"2024-11-03T18:27:22.574Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3xr8-qfvj-9p9j","url":"https://github.com/advisories/GHSA-3xr8-qfvj-9p9j","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:18.835Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-4888","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-4888","licence":"Public domain","modified":"2026-06-17T08:03:06.707Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1540","url":"https://osv.dev/vulnerability/PYSEC-2026-1540","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:51.378Z"}],"updatedAt":"2026-11-25T22:58:41.518Z","epss":{"score":0.00776,"percentile":0.52302,"date":"2026-11-30T12:00:22.000Z"}}