CVE-2024-4264

Remote Code Execution in berriai/litellm

Published May 18, 2024 CVSS 3.0 · 9.8 Critical EPSS < 1% KEV · Not listed
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`.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD 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 Github GHSA GHSA-7ggm-4rjg-594w litellm passes untrusted data to `eval` function without sanitization
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
@huntr_ai
Published
Updated
Sep 3, 2024, 7:16 PM
Reserved
Apr 26, 2024, 5:24 PM
Status
Deferred
Published
May 18, 2024, 12:15 AM
Modified
Jun 17, 2026, 8:01 AM