CVE-2024-6587
HIGH 7.5CVSS 3.1LiteLLM Server-Side Request Forgery (SSRF) vulnerability
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.
- Published
- 13 Sep 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security@huntr.dev
- NVD status
- Analyzed
- Weakness
- CWE-918
- Also known as
- GHSA-g26j-5385-hhw3PYSEC-2026-1547
- Sources
- NVDJSONOSV GHSA-g26j-5385-hhw3JSONOSV PYSEC-2026-1547JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| OSV | PyPA | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | PyPA | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | litellm | litellmcpe:2.3:a:litellm:litellm:1.38.10:*:*:*:*:*:*:* |
= 1.38.10 | |
| OSV | PyPI | litellm | < 1.44.8 | 1.44.8 |
References
- https://github.com/berriai/litellm/commit/ba1912afd1b19e38d3704bb156adf887f91ae1e0 · Patch, WEB
- https://huntr.com/bounties/4001e1a2-7b7a-4776-a3ae-e6692ec3d997 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-6587 · ADVISORY
- https://github.com/berriai/litellm · PACKAGE
- https://pypi.org/project/litellm · PACKAGE
- https://github.com/advisories/GHSA-g26j-5385-hhw3 · ADVISORY
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 13 Sep 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Sep 2024)