{"id":"CVE-2024-6587","aliases":["CVE-2024-6587","GHSA-g26j-5385-hhw3","PYSEC-2026-1547"],"related":[],"kind":"vulnerability","state":"published","title":"SSRF in berriai/litellm","summary":"A Server-Side Request Forgery (SSRF) vulnerability exists in berriai/litellm version 1.38.10. This vulnerability allows users to specify the `api_base` parameter when making requests to `POST /chat/completions`, causing the application to send the request to the domain specified by `api_base`. This request includes the OpenAI API key. A malicious user can set the `api_base` to their own domain and intercept the OpenAI API key, leading to unauthorized access and potential misuse of the API key.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A Server-Side Request Forgery (SSRF) vulnerability exists in berriai/litellm version 1.38.10. This vulnerability allows users to specify the `api_base` parameter when making requests to `POST /chat/completions`, causing the application to send the request to the domain specified by `api_base`. This request includes the OpenAI API key. A malicious user can set the `api_base` to their own domain and intercept the OpenAI API key, leading to unauthorized access and potential misuse of the API key.","source":"cvelist"},{"lang":"es","text":"Existe una vulnerabilidad de Server-Side Request Forgery (SSRF) en la versión 1.38.10 de berriai/litellm. Esta vulnerabilidad permite a los usuarios especificar el parámetro `api_base` al realizar solicitudes a `POST /chat/completions`, lo que hace que la aplicación envíe la solicitud al dominio especificado por `api_base`. Esta solicitud incluye la clave API de OpenAI. Un usuario malintencionado puede configurar `api_base` en su propio dominio e interceptar la clave API de OpenAI, lo que provoca un acceso no autorizado y un posible uso indebido de la clave API.","source":"nvd"}],"published":"2024-09-13T15:59:53.557Z","modified":"2026-09-10T03:50:56.061Z","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:N/A:N","score":7.5,"rating":"HIGH"},"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:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"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:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"1.44.9","status":"affected"}],"vendor":"berriai","product":"berriai/litellm","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"1.44.9","status":"affected"}],"vendor":"berriai","product":"litellm","cpe":"cpe:2.3:a:berriai:litellm:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.44.8"}],"ecosystem":"PyPI","package":"litellm","purl":"pkg:pypi/litellm","source":"ghsa"},{"ranges":[{"status":"affected","version":"1.38.10"}],"vendor":"litellm","product":"litellm","cpe":"cpe:2.3:a:litellm:litellm:1.38.10:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.44.8"}],"ecosystem":"PyPI","package":"litellm","purl":"pkg:pypi/litellm","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/4001e1a2-7b7a-4776-a3ae-e6692ec3d997","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/berriai/litellm/commit/ba1912afd1b19e38d3704bb156adf887f91ae1e0","tags":["patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6587","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/berriai/litellm","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/litellm","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-g26j-5385-hhw3","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-09-13T16:52:13.638Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-6587","url":"https://www.cve.org/CVERecord?id=CVE-2024-6587","licence":"CVE Terms of Use","modified":"2024-09-13T16:53:11.849Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g26j-5385-hhw3","url":"https://github.com/advisories/GHSA-g26j-5385-hhw3","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:56.061Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-6587","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6587","licence":"Public domain","modified":"2026-06-17T08:18:17.787Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1547","url":"https://osv.dev/vulnerability/PYSEC-2026-1547","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:30.584Z"}],"updatedAt":"2026-11-25T22:58:45.411Z","epss":{"score":0.34375,"percentile":0.98446,"date":"2026-12-02T12:00:21.000Z"}}