CVE-2024-5751
JSON

9.8critical

Remote Code Execution in BerriAI/litellm

Severity
9.8critical CVSS:3.0 by @huntr_ai
Exploit likelihood
0.88% (higher than 60% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
@huntr_ai
Also known as
GHSA-gppg-gqw8-wh9gPYSEC-2026-389

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.

Affected

Product or packageVersionsReported by
berriai berriai/litellmfrom unspecified up to latestCVE List
berriai litellm1.35.8CVE List
litellm (PyPI)before 1.40.16GitHub Advisory Database, PyPA Advisory Database
litellm litellm1.35.8NVD

All scores

@huntr_ai9.8critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory Database9.8critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

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.

NVD (es)

BerriAI/litellm versión v1.35.8 contiene una vulnerabilidad donde un atacante puede lograr la ejecución remota de código. La vulnerabilidad existe en la función `add_deployment`, que decodifica y descifra variables de entorno de base64 y las asigna a `os.environ`. Un atacante puede aprovechar esto enviando una carga maliciosa al endpoint `/config/update`, que luego es procesada y ejecutada por el servidor cuando se activa la función `get_secret`. Esto requiere que el servidor utilice Google KMS y una base de datos para almacenar un modelo.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-5751 changed 2025-10-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-gppg-gqw8-wh9g changed 2026-11-16CC-BY-4.0
NVDCVE-2024-5751 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-389 changed 2026-07-01CC-BY-4.0