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

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2024-06-27 · Modified: 2025-10-15
- Aliases: GHSA-gppg-gqw8-wh9g, PYSEC-2026-389
- Record: https://cvemate.com/vulnerability/CVE-2024-5751 · JSON: https://cvemate.com/vulnerability/CVE-2024-5751/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.0, CVE.org) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.875%, percentile 60.201%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- berriai berriai/litellm: ≥ unspecified, ≤ latest
- litellm litellm: 1.35.8
- PyPI litellm (PyPI): \< 1.40.16

## References

- <https://huntr.com/bounties/ae623c2f-b64b-4245-9ed4-f13a0a5824ce>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-5751>
- <https://github.com/BerriAI/litellm/pull/4228>
- <https://github.com/BerriAI/litellm/commit/fcea4c22ad96b24436f196ae709f71932e84b0b8>
- <https://github.com/berriai/litellm>
- <https://pypi.org/project/litellm>
- <https://github.com/advisories/GHSA-gppg-gqw8-wh9g>
- <https://github.com/pypa/advisory-database/tree/main/vulns/litellm/PYSEC-2026-389.yaml>

---

Data as of 2026-12-05T12:40:05.296Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
