# CVE-2024-4889: Code Injection in berriai/litellm

- Severity: High 7.2 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:H/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.86%, higher than 59% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-06T17:53:35.202Z
- Modified: 2026-06-17T08:03:06.820Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: @huntr_ai

## Description

A code injection vulnerability exists in the berriai/litellm application, version 1.34.6, due to the use of unvalidated input in the eval function within the secret management system. This vulnerability requires a valid Google KMS configuration file to be exploitable. Specifically, by setting the `UI_LOGO_PATH` variable to a remote server address in the `get_image` function, an attacker can write a malicious Google KMS configuration file to the `cached_logo.jpg` file. This file can then be used to execute arbitrary code by assigning malicious code to the `SAVE_CONFIG_TO_DB` environment variable, leading to full system control. The vulnerability is contingent upon the use of the Google KMS feature.

(As written by CVE List.)

## Affected

- berriai berriai/litellm: from unspecified up to latest
- berriai litellm: 1.34.6
- litellm litellm: before 1.44.16

## Every score

- @huntr_ai: CVSS:3.0 7.2 High `CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: 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/be3fda72-a65b-4993-9a0e-7e0f05db51f8> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2024-4889](https://www.cve.org/CVERecord?id=CVE-2024-4889), CVE Terms of Use, modified 2024-08-01
- NVD: [CVE-2024-4889](https://nvd.nist.gov/vuln/detail/CVE-2024-4889), Public domain, modified 2026-06-17

---

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