{"id":"CVE-2024-6587","published":"2024-09-13T15:59:53Z","modified":"2024-09-13T16:53:11Z","title":"SSRF in berriai/litellm","vendor":"berriai","product":"berriai/litellm","tier":"core","eol":null,"affectedVersions":[{"vendor":"berriai","product":"berriai/litellm","versions":[">= unspecified, < 1.44.9"]}],"description":{"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"A Server-Side Request Forgery (SSRF) flaw in the berriai/litellm product, version 1.38.10, lets users control the api_base parameter of requests to POST /chat/completions. An attacker who can reach that endpoint without authentication and set api_base to a domain they control can cause the application to send the request, including the OpenAI API key, to that domain and thereby capture the key for unauthorized use.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-31T22:22:14Z"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.34375,"percentile":0.98411,"date":"2026-10-31","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2024-08-22","exploitedFirstSeen":"2024-08-22","ransomware":false,"evidence":[{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-08-22&host_type=src&vulnerability=cve-2024-6587","date":"2024-08-22"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-08-25&host_type=src&vulnerability=cve-2024-6587","date":"2024-08-25"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-08-26&host_type=src&vulnerability=cve-2024-6587","date":"2024-08-26"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-08-28&host_type=src&vulnerability=cve-2024-6587","date":"2024-08-28"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-09-04&host_type=src&vulnerability=cve-2024-6587","date":"2024-09-04"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-09-08&host_type=src&vulnerability=cve-2024-6587","date":"2024-09-08"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-09-16&host_type=src&vulnerability=cve-2024-6587","date":"2024-09-16"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-09-17&host_type=src&vulnerability=cve-2024-6587","date":"2024-09-17"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-09-18&host_type=src&vulnerability=cve-2024-6587","date":"2024-09-18"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-09-19&host_type=src&vulnerability=cve-2024-6587","date":"2024-09-19"}],"evidenceTotal":302,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://huntr.com/bounties/4001e1a2-7b7a-4776-a3ae-e6692ec3d997","tags":[]},{"url":"https://github.com/berriai/litellm/commit/ba1912afd1b19e38d3704bb156adf887f91ae1e0","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"PyPI","package":"litellm","vulnerableRanges":["<1.44.8"],"patched":["1.44.8"],"from":["GHSA-g26j-5385-hhw3","PYSEC-2026-1547"],"provenance":"source"}],"advisories":[{"id":"GHSA-g26j-5385-hhw3","url":"https://github.com/advisories/GHSA-g26j-5385-hhw3","severity":"HIGH","ecosystem":"PyPI","package":"litellm","vulnerableRanges":["<1.44.8"],"patched":["1.44.8"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2024-2785","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-2785","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"nuclei":[{"id":"CVE-2024-6587","name":"LiteLLM - Server-Side Request Forgery","severity":"high","path":"http/cves/2024/CVE-2024-6587.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-6587.yaml"}],"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2024-08-22","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2024-08-22&host_type=src&vulnerability=cve-2024-6587","provenance":"source"},{"date":"2024-09-13","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2024-6587","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":null},"priority":{"score":64.9,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 800 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.68,"detail":"percentile 0.9841"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":5.25,"detail":"base score 7.5"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"familyId":"fam-berriai-litellm-cve-2024-6587","children":[{"from":"CVE-2024-6587","to":"CVE-2026-114612","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["litellm/proxy/auth/auth_checks.py"],"commits":["https://github.com/berriai/litellm/commit/ba1912afd1b19e38d3704bb156adf887f91ae1e0","https://github.com/BerriAI/litellm/commit/1d5fdc87fed66b49e1df8cf7d708ad93249eb7d0","https://github.com/BerriAI/litellm/commit/9161d7f9d6073603ba61ee4aa5e2c0ef5b37a81b"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2024-5225","published":"2024-06-06","fixed":"1.40.0","kev":false},{"cve":"CVE-2024-5710","published":"2024-06-27","fixed":"1.40.15","kev":false},{"cve":"CVE-2024-5751","published":"2024-06-27","fixed":"1.40.16","kev":false,"link":{"from":"CVE-2024-5751","to":"CVE-2024-6587","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:litellm","fromFixed":"1.40.16","toFixed":"1.44.8","daysApart":78}]}},{"cve":"CVE-2024-6587","published":"2024-09-13","fixed":"1.44.8","kev":false},{"cve":"CVE-2024-9606","published":"2025-03-20","fixed":"1.44.12","kev":false,"link":{"from":"CVE-2024-6587","to":"CVE-2024-9606","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:litellm","fromFixed":"1.44.8","toFixed":"1.44.12","daysApart":188}]}},{"cve":"CVE-2024-10188","published":"2025-03-20","fixed":"1.53.1.dev1","kev":false},{"cve":"CVE-2024-8984","published":"2025-03-20","fixed":"1.56.2","kev":false}],"package":"PyPI:litellm"}}