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`.
Analysis and contextual insights are available on OpenCVE Cloud.
Remediation
No vendor fix or workaround currently provided.
Additional remediation guidance may be available on OpenCVE Cloud.
Tracking
Sign in to view the affected projects.
Advisories
| Source | ID | Title |
|---|---|---|
EUVD |
EUVD-2024-1491 | 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`. |
Github GHSA |
GHSA-7ggm-4rjg-594w | litellm passes untrusted data to `eval` function without sanitization |
References
History
No history.
Status: PUBLISHED
Assigner: @huntr_ai
Published:
Updated: 2024-09-03T19:16:28.184Z
Reserved: 2024-04-26T17:24:03.780Z
Link: CVE-2024-4264
Updated: 2024-08-01T20:33:53.229Z
Status : Deferred
Published: 2024-05-18T00:15:07.777
Modified: 2026-04-15T00:35:42.020
Link: CVE-2024-4264
No data.
OpenCVE Enrichment
Updated: 2025-07-12T23:06:40Z
Weaknesses
EUVD
Github GHSA