{"id":"CVE-2024-4264","published":"2024-05-18T00:00:15Z","modified":"2024-09-03T19:16:28Z","title":"Remote Code Execution in berriai/litellm","vendor":"berriai","product":"berriai/litellm","tier":"tail","description":{"text":"A remote code execution (RCE) vulnerability exists in the berriai/litellm project due to improper control of the generation of code when using the `eval` function unsafely in the `litellm.get_secret()` method. Specifically, when the server utilizes Google KMS, untrusted data is passed to the `eval` function without any sanitization. Attackers can exploit this vulnerability by injecting malicious values into environment variables through the `/config/update` endpoint, which allows for the update of settings in `proxy_server_config.yaml`.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00883,"percentile":0.60066,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://huntr.com/bounties/a3221b0c-6e25-4295-ab0f-042997e8fc61","tags":[]}],"priority":{"score":18.9,"factors":[{"name":"EPSS percentile","points":12.01},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"berriai","affectedVersions":[{"vendor":"berriai","product":"berriai/litellm","versions":[">= unspecified, <= latest"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-08-05T19:26:40.591440Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"litellm","vulnerableRanges":["<=1.28.11"],"patched":[],"from":["GHSA-7ggm-4rjg-594w","PYSEC-2026-1542"],"provenance":"source"}],"euvd":{"id":"EUVD-2024-1491","exploited":false,"provenance":"source"}}