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 package | Versions | Reported by |
|---|---|---|
| berriai berriai/litellm | from unspecified up to latest | CVE List |
| berriai litellm | 1.35.8 | CVE List |
| litellm (PyPI) | before 1.40.16 | GitHub Advisory Database, PyPA Advisory Database |
| litellm litellm | 1.35.8 | NVD |
All scores
| @huntr_ai | 9.8critical CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 9.8critical CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-5751 changed 2025-10-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-gppg-gqw8-wh9g changed 2026-11-16 | CC-BY-4.0 |
| NVD | CVE-2024-5751 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-389 changed 2026-07-01 | CC-BY-4.0 |