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

- Severity: Critical 9.8 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.88%, higher than 60% of CVEs (2026-12-01)
- Published: 2024-06-27T18:40:49.896Z
- Modified: 2026-11-16T15:30:03.416Z
- Also known as: GHSA-gppg-gqw8-wh9g, PYSEC-2026-389
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- berriai berriai/litellm: from unspecified up to latest
- berriai litellm: 1.35.8
- litellm (PyPI): before 1.40.16
- litellm litellm: 1.35.8

## Every score

- @huntr_ai: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

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

## Sources

- CVE List: [CVE-2024-5751](https://www.cve.org/CVERecord?id=CVE-2024-5751), CVE Terms of Use, modified 2025-10-15
- GitHub Advisory Database: [GHSA-gppg-gqw8-wh9g](https://github.com/advisories/GHSA-gppg-gqw8-wh9g), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2024-5751](https://nvd.nist.gov/vuln/detail/CVE-2024-5751), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-389](https://osv.dev/vulnerability/PYSEC-2026-389), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2024-5751 · Whole record: https://cve.day/CVE-2024-5751.json · Rebuilt by cve.day 2026-11-25T22:58:42.292Z
