CVE-2024-5751 CRITICAL

CVE-2024-5751: Remote Code Execution in BerriAI/litellm

Vendor Berriai
Product berriai/litellm
Weakness CWE-94 · Code injection
Published June 27, 2024
Last update October 15, 2025

CVSS base score

9.8/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality High
Integrity High

CVSS vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

June 27, 2024 CVE published
October 15, 2025 Record updated