Critical severity · published Jun 27, 2024
CVE-2024-5751
Remote Code Execution in BerriAI/litellm
9.8
CVSS
0.9%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.9% · higher than 59% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
BE
berriai/litellm · berriai
through latest · source: vendor
LI
Litellm · Litellm
1.35.8 · source: NVD, CISA
Affected product
BE
berriai/litellm
berriai
More from berriai/litellm
9.8
CVE-2024-4264
Remote Code Execution in berriai/litellm
9.8
CVE-2024-2952
Server-Side Template Injection in BerriAI/litellm
8.8
CVE-2024-6825
Remote Code Execution in BerriAI/litellm
8.1
CVE-2025-0628
Improper Authorization in BerriAI/litellm
8.1
CVE-2024-4888
Arbitrary File Deletion in BerriAI/litellm