CVE-2024-4889.yaml
1 info: 2 name: LiteLLM 3 cve: CVE-2024-4889 4 summary: Code injection vulnerability in LiteLLM's secret management system. 5 details: | 6 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. 7 cvss: CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H 8 severity: HIGH 9 security_advise: | 10 1. Upgrade LiteLLM to a version patched against CVE-2024-4889. 11 2. Avoid using unvalidated input in `eval` functions. 12 3. Implement strict input validation for all user-controlled variables, especially those affecting file paths or configuration. 13 4. Restrict the ability to set `UI_LOGO_PATH` to remote server addresses. 14 5. Ensure that the Google KMS feature is configured securely and that its configuration files cannot be tampered with. 15 rule: version < "1.34.7" 16 references: 17 - https://nvd.nist.gov/vuln/detail/CVE-2024-4889 18 - https://huntr.com/bounties/be3fda72-a65b-4993-9a0e-7e0f05db51f8