Skip to main content
← All vulnerabilities
CVE-2024-5751GHSA-GPPG-GQW8-WH9GPYSEC-2026-389

Remote Code Execution in BerriAI/litellm

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

Summary

BerriAI/litellm version v1.35.8 contains a vulnerability where an attacker can achieve remote code execution. The vulnerability exists in the `add_deployment` function, which decodes and decrypts environment variables from base64 and assigns them to `os.environ`. An attacker can exploit this by sending a malicious payload to the `/config/update` endpoint, which is then processed and executed by the server when the `get_secret` function is triggered. This requires the server to use Google KMS and a database to store a model.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • berriai berriai/litellm

    Version range not reported

  • litellmPyPI

    fixed in 1.40.16

  • litellmPyPI

    fixed in 1.40.16

References 1

huntr.com