LITELLM · CVE-2024-5751 · AI agents & MCP
FIX → 1.40.16
LiteLLM, a Python gateway for calling language models, evaluates attacker-supplied data in its config update path, so a crafted request to the /config/update endpoint can execute code on the server. The sources say an attacker gets remote code execution, which means taking over the server process.
first public Jun 27, 2024 · 2 sources
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Teams running a LiteLLM proxy server that exposes the /config/update endpoint. The sources say exploitation requires the server to use Google KMS and a database to store a model, so proxies without that setup are less exposed. Library-only use inside an application that does not run the proxy is not described as affected.
Not affected if library-only-use, no-config-update-endpoint, no-google-kms
Who cares ai-gateway, litellm, python, self-hosted
pip show litellm; versions below 1.40.16 are affected./config/update endpoint and uses Google KMS with a database to store models, since the sources say that setup is required.Upgrade to 1.40.16
BerriAI/litellm version v1.35.8 contains a vulnerability where an attacker can achieve remote code execution. The vulnerability exists in the add_deployment function, which decodes and decrypts environment variables from base64 and assigns them to os.environ. An attacker can exploit this by sending a malicious payload to the /config/update endpoint, which is then processed and executed by the server when the get_secret function is triggered. This requires the server to use Google KMS and a database to store a model.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.
litellm to 1.40.16 or later.GitHub Advisory Database, CC-BY 4.0 · NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.