CVE-2024-4264 json
Remote Code Execution in berriai/litellm
published 2024-05-18 2 y ago modified 2026-09-10 1 mo ago also GHSA-7ggm-4rjg-594w , PYSEC-2026-1542 , EUVD-2024-1491
- 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
A remote code execution (RCE) vulnerability exists in the berriai/litellm project due to improper control of the generation of code when using the `eval` function unsafely in the `litellm.get_secret()` method. Specifically, when the server utilizes Google KMS, untrusted data is passed to the `eval` function without any sanitization. Attackers can exploit this vulnerability by injecting malicious values into environment variables through the `/config/update` endpoint, which allows for the update of settings in `proxy_server_config.yaml`.
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 |
| GitHub | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | litellm | <=1.28.11 |
no fix listed |
Affected products
- berriai berriai/litellm
- berriai litellm
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
huntr.com
/bounties/a3221b0c-6e25-4295-ab0f-042997e8fc61
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-4264
advisory
-
github.com
/BerriAI/litellm
package
-
github.com
/BerriAI/litellm/blob/main/litellm/proxy/proxy_server.py#L2104-L2108
web
-
github.com
/BerriAI/litellm/blob/main/litellm/proxy/proxy_server.py#L2118
web
-
github.com
/BerriAI/litellm/blob/main/litellm/proxy/proxy_server.py#L2509-L2517
web
-
github.com
/BerriAI/litellm/blob/main/litellm/proxy/proxy_server.py#L2562-L2577
web
-
github.com
/BerriAI/litellm/blob/main/litellm/utils.py#L9867-L9885
web
-
pypi.org
/project/litellm
package
-
github.com
/advisories/GHSA-7ggm-4rjg-594w
advisory
Sources
- CVE List CVE-2024-4264
- GitHub Advisory GHSA-7ggm-4rjg-594w
- NVD CVE-2024-4264
- OSV PYSEC-2026-1542
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.