{"id":"CVE-2024-5751","aliases":["CVE-2024-5751","GHSA-gppg-gqw8-wh9g","PYSEC-2026-389"],"related":[],"kind":"vulnerability","state":"published","title":"Remote Code Execution in BerriAI/litellm","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"BerriAI/litellm versión v1.35.8 contiene una vulnerabilidad donde un atacante puede lograr la ejecución remota de código. La vulnerabilidad existe en la función `add_deployment`, que decodifica y descifra variables de entorno de base64 y las asigna a `os.environ`. Un atacante puede aprovechar esto enviando una carga maliciosa al endpoint `/config/update`, que luego es procesada y ejecutada por el servidor cuando se activa la función `get_secret`. Esto requiere que el servidor utilice Google KMS y una base de datos para almacenar un modelo.","source":"nvd"}],"published":"2024-06-27T18:40:49.896Z","modified":"2026-11-16T15:30:03.416Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"latest","status":"affected"}],"vendor":"berriai","product":"berriai/litellm","source":"cvelist"},{"ranges":[{"version":"1.35.8","status":"affected"}],"vendor":"berriai","product":"litellm","cpe":"cpe:2.3:a:berriai:litellm:1.35.8:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.40.16"}],"ecosystem":"PyPI","package":"litellm","purl":"pkg:pypi/litellm","source":"ghsa"},{"ranges":[{"status":"affected","version":"1.35.8"}],"vendor":"litellm","product":"litellm","cpe":"cpe:2.3:a:litellm:litellm:1.35.8:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.40.16"}],"ecosystem":"PyPI","package":"litellm","purl":"pkg:pypi/litellm","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/ae623c2f-b64b-4245-9ed4-f13a0a5824ce","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5751","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/BerriAI/litellm/pull/4228","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/BerriAI/litellm/commit/fcea4c22ad96b24436f196ae709f71932e84b0b8","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/berriai/litellm","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/litellm/PYSEC-2026-389.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/litellm","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-gppg-gqw8-wh9g","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2024-06-27T20:20:04.683Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-5751","url":"https://www.cve.org/CVERecord?id=CVE-2024-5751","licence":"CVE Terms of Use","modified":"2025-10-15T12:50:28.520Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gppg-gqw8-wh9g","url":"https://github.com/advisories/GHSA-gppg-gqw8-wh9g","licence":"CC-BY-4.0","modified":"2026-11-16T15:30:03.416Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-5751","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5751","licence":"Public domain","modified":"2026-06-17T08:16:35.527Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-389","url":"https://osv.dev/vulnerability/PYSEC-2026-389","licence":"CC-BY-4.0","modified":"2026-07-01T20:22:56.345Z"}],"updatedAt":"2026-11-25T22:58:42.292Z","epss":{"score":0.00875,"percentile":0.60031,"date":"2026-12-01T12:00:22.000Z"}}