RCE in Berriai Berriai/litellm
CVE-2024-4889
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.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.009 (56.8th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 57th percentile — 56.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.009 · newest: 0.009 · change: 0.000
Affected products
- Berriai Berriai/litellm — versions unspecified
- Litellm
Weakness classification (CWE)
Public proof-of-concept exploits
References
- huntr.com/bounties/be3fda72-a65b-4993-9a0e-7e0f05db51f8 (Exploit, Third Party Advisory)
Frequently asked questions
- What is CVE-2024-4889?
- CVE-2024-4889 is a high-severity vulnerability in Berriai Berriai/litellm, classified under Code Injection. CVSS score: 7.2/10. Published 2024-06-06.
- How severe is CVE-2024-4889?
- High severity. CVSS v3 base score is 7.2 out of 10.
- Is CVE-2024-4889 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.