Skip to main content
← All vulnerabilities
CVE-2024-4888PYSEC-2026-1540GHSA-3XR8-QFVJ-9P9J

Arbitrary File Deletion in BerriAI/litellm

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.35.36
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • berriai berriai/litellm

    Version range not reported

  • litellmPyPI

    fixed in 1.35.36

  • litellmPyPI

    fixed in 1.35.36

References 1

huntr.com