{"id":"CVE-2024-5751","summary":"Remote Code Execution in BerriAI/litellm","details":"BerriAI/litellm version v1.35.8 contains a vulnerability where an attacker can achieve remote code execution. The vulnerability exists in the `add_deployment` function, which decodes and decrypts environment variables from base64 and assigns them to `os.environ`. An attacker can exploit this by sending a malicious payload to the `/config/update` endpoint, which is then processed and executed by the server when the `get_secret` function is triggered. This requires the server to use Google KMS and a database to store a model.","aliases":["GHSA-gppg-gqw8-wh9g","PYSEC-2026-389"],"modified":"2026-08-12T03:51:14.130253127Z","published":"2024-06-27T18:40:49.896Z","database_specific":{"cna_assigner":"@huntr_ai","cwe_ids":["CWE-94"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5751.json"},"references":[{"type":"WEB","url":"https://huntr.com/bounties/ae623c2f-b64b-4245-9ed4-f13a0a5824ce"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5751.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5751"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/berriai/litellm","events":[{"introduced":"45d1b5a4cf112dd6ab0f96bdae26c8f7c8f6d531"},{"last_affected":"45d1b5a4cf112dd6ab0f96bdae26c8f7c8f6d531"}],"database_specific":{"extracted_events":[{"introduced":"1.35.8"},{"last_affected":"1.35.8"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:litellm:litellm:1.35.8:*:*:*:*:*:*:*"}}],"versions":["1.35.8","v1.35.8"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-5751.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}