{"id":"CVE-2024-4264","aliases":["CVE-2024-4264","GHSA-7ggm-4rjg-594w","PYSEC-2026-1542"],"related":[],"kind":"vulnerability","state":"published","title":"Remote Code Execution in berriai/litellm","summary":"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`.","summarySource":"cvelist","descriptions":[{"lang":"en","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`.","source":"cvelist"},{"lang":"es","text":"Existe una vulnerabilidad de ejecución remota de código (RCE) en el proyecto berriai/litellm debido a un control inadecuado de la generación de código cuando se utiliza la función `eval` de forma insegura en el método `litellm.get_secret()`. Específicamente, cuando el servidor utiliza Google KMS, los datos que no son de confianza se pasan a la función \"eval\" sin ningún tipo de desinfección. Los atacantes pueden aprovechar esta vulnerabilidad inyectando valores maliciosos en las variables de entorno a través del endpoint `/config/update`, que permite la actualización de la configuración en `proxy_server_config.yaml`.","source":"nvd"}],"published":"2024-05-18T00:00:15.222Z","modified":"2026-09-10T03:50:13.427Z","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.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"latest","status":"affected"}],"vendor":"berriai","product":"berriai/litellm","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"*","status":"affected"}],"vendor":"berriai","product":"litellm","cpe":"cpe:2.3:a:berriai:litellm:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"1.28.11"}],"ecosystem":"PyPI","package":"litellm","purl":"pkg:pypi/litellm","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"1.28.11"}],"ecosystem":"PyPI","package":"litellm","purl":"pkg:pypi/litellm","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/a3221b0c-6e25-4295-ab0f-042997e8fc61","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-4264","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/BerriAI/litellm","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/BerriAI/litellm/blob/main/litellm/proxy/proxy_server.py#L2104-L2108","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/BerriAI/litellm/blob/main/litellm/proxy/proxy_server.py#L2118","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/BerriAI/litellm/blob/main/litellm/proxy/proxy_server.py#L2509-L2517","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/BerriAI/litellm/blob/main/litellm/proxy/proxy_server.py#L2562-L2577","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/BerriAI/litellm/blob/main/litellm/utils.py#L9867-L9885","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/litellm","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-7ggm-4rjg-594w","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2024-08-05T19:26:40.591Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-4264","url":"https://www.cve.org/CVERecord?id=CVE-2024-4264","licence":"CVE Terms of Use","modified":"2024-09-03T19:16:28.184Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7ggm-4rjg-594w","url":"https://github.com/advisories/GHSA-7ggm-4rjg-594w","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:13.427Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-4264","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-4264","licence":"Public domain","modified":"2026-06-17T08:01:33.520Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1542","url":"https://osv.dev/vulnerability/PYSEC-2026-1542","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:52.809Z"}],"updatedAt":"2026-11-25T22:58:40.558Z","epss":{"score":0.00883,"percentile":0.60263,"date":"2026-12-01T12:00:22.000Z"}}