CVE-2024-5751 json
Remote Code Execution in BerriAI/litellm
published 2024-06-27 2 y ago modified 2026-09-10 1 mo ago also GHSA-gppg-gqw8-wh9g , PYSEC-2026-389 , EUVD-2024-2057
- cvss
- 9.8
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 59%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi litellm 1.40.16
- github.com/BerriAI/litellm@fcea4c2 commit
- github.com/BerriAI/litellm#4228 pull request
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
0.88% chance of exploitation in the next 30 days, higher than 59% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | litellm | <1.40.16 |
1.40.16 |
Affected products
- berriai berriai/litellm
- berriai litellm
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/BerriAI/litellm/pull/4228
web
-
github.com
/BerriAI/litellm/commit/fcea4c22ad96b24436f196ae709f71932e84b0b8
web
-
huntr.com
/bounties/ae623c2f-b64b-4245-9ed4-f13a0a5824ce
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-5751
advisory
-
github.com
/berriai/litellm
package
-
pypi.org
/project/litellm
package
-
github.com
/advisories/GHSA-gppg-gqw8-wh9g
advisory
Sources
- CVE List CVE-2024-5751
- GitHub Advisory GHSA-gppg-gqw8-wh9g
- NVD CVE-2024-5751
- OSV PYSEC-2026-389
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.