{"id":"CVE-2024-6587","summary":"SSRF in berriai/litellm","details":"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.","aliases":["GHSA-g26j-5385-hhw3","PYSEC-2026-1547"],"modified":"2026-07-08T07:31:24.220990789Z","published":"2024-09-13T15:59:53.557Z","database_specific":{"cna_assigner":"@huntr_ai","cwe_ids":["CWE-918"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6587.json"},"references":[{"type":"WEB","url":"https://huntr.com/bounties/4001e1a2-7b7a-4776-a3ae-e6692ec3d997"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6587.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6587"},{"type":"FIX","url":"https://github.com/berriai/litellm/commit/ba1912afd1b19e38d3704bb156adf887f91ae1e0"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/berriai/litellm","events":[{"introduced":"3be6a07e35599b40e069c9516ec4fd4b00cd0e23"},{"fixed":"ba1912afd1b19e38d3704bb156adf887f91ae1e0"}],"database_specific":{"cpe":"cpe:2.3:a:litellm:litellm:1.38.10:*:*:*:*:*:*:*","source":["CPE_STRING","REFERENCES"],"extracted_events":[{"introduced":"1.38.10"},{"last_affected":"1.38.10"}]}}],"versions":["1.38.10","v1.44.8","v1.44.7","v1.44.6-stable","v1.44.6","1.44.6","v1.44.5","v1.44.4.dev2","v1.44.4","v1.44.3","v1.44.2","v1.44.1","v1.43.19.dev2","v1.43.19-stable","v1.43.19","v1.43.19.dev1","v1.43.18-stable","v1.43.18","v1.43.17","v1.43.16-stable","v1.43.16","v1.43.15-stable","v1.43.15","v1.43.13-stable","v1.43.13","v1.43.12","v1.43.10-stable","v1.43.10","v1.43.9","v1.43.7-stable","v1.43.7","v1.43.6.dev1","v1.43.6-stable","v1.43.6","v1.43.5-stable","v1.43.5","v1.43.4.dev5","v1.43.4","v1.43.3","v1.43.2","v1.43.1","v1.43.1-dev1","v1.43.0","v1.42.12","v1.42.10-stable","v1.42.10","v1.42.11","v1.42.9-stable","v1.42.9.dev1","v1.42.9-stable-fix","v1.42.9","v1.42.8","v1.42.7-stable","v1.42.7","v1.42.6","v1.42.5-dev2","v1.42.5-dev1","v1.42.5-stable","v1.42.5","v1.42.4-stable","v1.42.4","v1.42.3-stable","v1.42.3","v1.42.2-stable","v1.42.2","v1.42.1","v1.42.0-stable","v1.42.0","v1.41.28","v1.41.27","v1.41.26","v1.41.26.dev1","v1.41.25","v1.41.24.dev1","v1.41.24","v1.41.22","v1.41.23-stable","v1.41.23","v1.41.21","v1.41.20","v1.41.19","v1.41.18","v1.41.15","v1.41.17","1.41.14.dev15","v1.41.14.dev10","v1.41.14.dev8","v1.41.13","v1.41.14","1.41.12.dev1","v1.41.12","1.41.11.dev5","v1.41.11.dev1","v1.41.8.dev2","v1.41.8.dev1","v1.41.11","v1.41.8","v1.41.7","v1.41.6.dev1","v1.41.5","v1.41.6","v1.41.5.dev1","v1.41.4.dev1","v1.41.4","v1.41.3.dev2","v1.41.3","v1.41.2-stable","v1.41.2","v1.41.1","v1.41.0-stable","v1.41.0","v1.40.31","v1.40.29","v1.40.28","v1.40.27","v1.40.26","v1.40.25","v1.40.24","v1.40.22","v1.40.21","v1.40.20","v1.40.19","v1.40.17","v1.40.16","v1.40.15","v1.40.14","v1.40.13","v1.40.12","v1.40.11","v1.40.10","v1.40.9-stable","v1.40.9","1.40.8.dev1","v1.40.8-stable","v1.40.8","v1.40.7.dev1","v1.40.7","v1.40.6","v1.40.5","v1.40.4","v1.40.3-stable","v1.40.3","v1.40.2-stable","v1.40.2","v1.40.1.dev4","v1.40.1.dev2","v1.40.1","v1.40.0","v1.39.6","v1.39.5","v1.39.5-stable","v1.39.4","v1.39.3","v1.39.2","v1.38.12","v1.38.11","v1.38.10"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-6587.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}