CVE-2024-4889 Code Injection in berriai/litellm
Attackers can execute arbitrary code via malicious KMS config files if Google KMS is enabled, requiring valid configuration access.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-4889?
CVE-2024-4889 is a high-severity code injection vulnerability in berriai/litellm, published on 6 Jun 2024. An attacker needs administrator access to exploit it, with no action from the victim.
Official 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.
Weakness: CWE-94
Which versions are affected by CVE-2024-4889?
It affects 1 product.
Products include Litellm Litellm.
How do I fix CVE-2024-4889?
No fix has been published for CVE-2024-4889 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2024-4889 being exploited?
There is no known exploitation of CVE-2024-4889 in the wild and no public exploit code.
Other vulnerabilities in berriai/litellm
Sources
Also known as GHSA-423v-966v-frxg.