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

- Severity: Critical 9.8 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.88%, higher than 60% of CVEs (2026-12-01)
- Published: 2024-05-18T00:00:15.222Z
- Modified: 2026-09-10T03:50:13.427Z
- Also known as: GHSA-7ggm-4rjg-594w, PYSEC-2026-1542
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: @huntr_ai

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

(As written by CVE List.)

## Affected

- berriai berriai/litellm: from unspecified up to latest
- berriai litellm: before *
- litellm (PyPI): up to 1.28.11

## Every score

- @huntr_ai: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/a3221b0c-6e25-4295-ab0f-042997e8fc61> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-4264> (advisory)
- <https://github.com/BerriAI/litellm> (package)
- <https://github.com/BerriAI/litellm/blob/main/litellm/proxy/proxy_server.py#L2104-L2108> (web)
- <https://github.com/BerriAI/litellm/blob/main/litellm/proxy/proxy_server.py#L2118> (web)
- <https://github.com/BerriAI/litellm/blob/main/litellm/proxy/proxy_server.py#L2509-L2517> (web)
- <https://github.com/BerriAI/litellm/blob/main/litellm/proxy/proxy_server.py#L2562-L2577> (web)
- <https://github.com/BerriAI/litellm/blob/main/litellm/utils.py#L9867-L9885> (web)
- <https://pypi.org/project/litellm> (package)
- <https://github.com/advisories/GHSA-7ggm-4rjg-594w> (advisory)

## Sources

- CVE List: [CVE-2024-4264](https://www.cve.org/CVERecord?id=CVE-2024-4264), CVE Terms of Use, modified 2024-09-03
- GitHub Advisory Database: [GHSA-7ggm-4rjg-594w](https://github.com/advisories/GHSA-7ggm-4rjg-594w), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-4264](https://nvd.nist.gov/vuln/detail/CVE-2024-4264), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1542](https://osv.dev/vulnerability/PYSEC-2026-1542), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-4264 · Whole record: https://cve.day/CVE-2024-4264.json · Rebuilt by cve.day 2026-11-25T22:58:40.558Z
