CVE-2024-4889
Google KMS Litellm Code Injection
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.
INFO
Published Date :
June 6, 2024, 6:15 p.m.
Last Modified :
Nov. 21, 2024, 9:43 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
1.2
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-4889
.
URL | Resource |
---|---|
https://huntr.com/bounties/be3fda72-a65b-4993-9a0e-7e0f05db51f8 | Exploit Third Party Advisory |
https://huntr.com/bounties/be3fda72-a65b-4993-9a0e-7e0f05db51f8 | Exploit Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-4889
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-4889
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://huntr.com/bounties/be3fda72-a65b-4993-9a0e-7e0f05db51f8 -
Initial Analysis by [email protected]
Oct. 15, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://huntr.com/bounties/be3fda72-a65b-4993-9a0e-7e0f05db51f8 No Types Assigned https://huntr.com/bounties/be3fda72-a65b-4993-9a0e-7e0f05db51f8 Exploit, Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:litellm:litellm:*:*:*:*:*:*:*:* versions up to (excluding) 1.44.16 -
CVE Received by [email protected]
Jun. 06, 2024
Action Type Old Value New Value Added 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. Added Reference huntr.dev https://huntr.com/bounties/be3fda72-a65b-4993-9a0e-7e0f05db51f8 [No types assigned] Added CWE huntr.dev CWE-94 Added CVSS V3 huntr.dev AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-4889
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-4889
weaknesses.