CVE-2024-4264: Remote Code Execution in berriai/litellm
Vulnerability summary
CVE-2024-4264 is a critical (CVSS 9.8) Improper Control of Generation of Code vulnerability in berriai berriai/litellm. EPSS estimates a 0.88% chance of exploitation in the next 30 days, higher than 60.2% of scored vulnerabilities.
Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Timeline
- 18-05-2024PublishedVulnerability first disclosed.
- 03-09-2024Last modifiedVulnerability information updated.
Description
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`.
CVSS metrics
3 scores · 3 sources · 2 versions- NVDNIST9.8CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.88%
Chance of exploitation in the next 30 days
Percentile
60%
Versus all other CVEs
30-day change
Decrease -0.01 pp
From 0.88% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Berriai1 product
- berriai/litellm≥ unspecified, ≤ latest
PyPI1 product
- litellm≤ 1.28.11
2 vendors · 2 products
References
10 links- github.com/BerriAI/litellmPACKAGE
- pypi.org/project/litellmPACKAGE