{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-5751","assignerOrgId":"c09c270a-b464-47c1-9133-acb35b22c19a","state":"PUBLISHED","assignerShortName":"@huntr_ai","dateReserved":"2024-06-07T16:33:15.277Z","datePublished":"2024-06-27T18:40:49.896Z","dateUpdated":"2025-10-15T12:50:28.520Z"},"containers":{"cna":{"title":"Remote Code Execution in BerriAI/litellm","providerMetadata":{"orgId":"c09c270a-b464-47c1-9133-acb35b22c19a","shortName":"@huntr_ai","dateUpdated":"2025-10-15T12:50:28.520Z"},"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"berriai","product":"berriai/litellm","versions":[{"version":"unspecified","status":"affected","versionType":"custom","lessThanOrEqual":"latest"}]}],"references":[{"url":"https://huntr.com/bounties/ae623c2f-b64b-4245-9ed4-f13a0a5824ce"}],"metrics":[{"cvssV3_0":{"version":"3.0","attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL"}}],"problemTypes":[{"descriptions":[{"type":"CWE","lang":"en","description":"CWE-94 Improper Control of Generation of Code","cweId":"CWE-94"}]}],"source":{"advisory":"ae623c2f-b64b-4245-9ed4-f13a0a5824ce","discovery":"EXTERNAL"}},"adp":[{"affected":[{"vendor":"berriai","product":"litellm","cpes":["cpe:2.3:a:berriai:litellm:1.35.8:*:*:*:*:*:*:*"],"defaultStatus":"unknown","versions":[{"version":"1.35.8","status":"affected"}]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-06-27T20:20:04.683432Z","id":"CVE-2024-5751","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2024-07-02T19:00:11.936Z"}},{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-01T21:18:07.126Z"},"title":"CVE Program Container","references":[{"url":"https://huntr.com/bounties/ae623c2f-b64b-4245-9ed4-f13a0a5824ce","tags":["x_transferred"]}]}]}}