CVE-2024-5751Litellm
Critical 9.8 No auth needed
Follow: this CVE · Litellm · Litellm We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.7% probability of exploitation in 30 days · percentile 77
- Auth required
- No
- Published
- Jun 27, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Litellm.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | litellm |
< 1.40.16 |
1.40.16 |
pip install "litellm>=1.40.16" |
| PyPI | litellm |
< 1.40.16 |
1.40.16 |
pip install "litellm>=1.40.16" |
Per OSV / GitHub Advisories (GHSA-gppg-gqw8-wh9g, PYSEC-2026-389). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| litellm | litellm | 1.35.8 |
Official sources
References
Links published by the sources. Open them with care.
- huntr.com Third Party Advisory