Free AI Safety Workshop — in collaboration with explainx.aiSave your seat
AgentbeamBeta
AI agent vulnerability · LiteLLM

CVE-2024-4264: litellm passes untrusted data to `eval` function without sanitization

highCVSS 3.1 7.2GHSA-7ggm-4rjg-594w

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.getsecret() method. Specifically, when the server utilizes Google KMS, untrusted data is passed to the eval function without any sanitization.

Published May 18, 2024 · Updated May 20, 2024

Affected packages

litellm

Ecosystem
PyPI
Affected
<= 1.28.11
Fixed in
No patched version yet
Check
pip show litellm

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More LiteLLM vulnerabilities

All LiteLLM entries