Skip to content
HighVulnerabilityLLM-specific

CVE-2024-4889: LiteLLM code injection in secret management through eval

Identifier
CVE-2024-4889
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.9%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

CVE-2024-4889 is a code injection flaw in berriai/litellm version 1.34.6, caused by unvalidated input passed to the eval function in the secret management system. An attacker can set UI_LOGO_PATH to a remote server so that get_image writes a malicious Google KMS configuration file to cached_logo.jpg, then assign malicious code to SAVE_CONFIG_TO_DB to gain full system control. Exploitation requires the Google KMS feature to be in use.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.