CVE-2024-6587: LiteLLM - Server-Side Request Forgery
- Cve: CVE-2024-6587
- Name: LiteLLM - Server-Side Request Forgery
- Description: 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.
- Impact: Attackers can perform unauthorized requests and access sensitive API keys, leading to data leakage and potential misuse of API services.
- Remediation: Implement proper request validation and access controls, and update to the latest version if available.
- Vulnerability type: server_side_request_forgery
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.34375
- Epss percentile: 0.98451
- Assignee: [email protected]
- Published at: 2024-09-13T16:15:04Z
- Age in days: 802
- Modified at: 2026-06-17T08:18:17Z
- Patch available: yes
- Public exploits total: 1
- References total: 6
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-6587
- Nvd status: analyzed
- Checked, none or zero: public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-918 | Server-Side Request Forgery |
Known exploited entries
| List | Added date | Due date | Ransomware use |
|---|---|---|---|
| vulncheck | 2024-08-22 | — | no |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2024-6587 | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-6587.yaml |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://huntr.com/bounties/4001e1a2-7b7a-4776-a3ae-e6692ec3d997 | nvd | 2024-09-13 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/berriai/litellm/commit/ba1912afd1b19e38d3704bb156adf887f91ae1e0 | nvd | Patch |
| https://huntr.com/bounties/4001e1a2-7b7a-4776-a3ae-e6692ec3d997 | nvd | Exploit, Third Party Advisory |
| https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-6587.yaml | nuclei_template | Nuclei Template |
| https://app.crowdsec.net/cti/cve-explorer/CVE-2024-6587 | vulncheck | Vulncheck Reported Exploitation |
| https://www.greynoise.io/blog/new-ssrf-exploitation-surge | vulncheck | Vulncheck Reported Exploitation |
| https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2024-6587 | vulncheck | Vulncheck Reported Exploitation |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| litellm:litellm | = 1.38.10 | no | nvd | /v1/products/litellm/litellm |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| berriai/litellm | commit, fix, package | yes | /v1/repositories/berriai/litellm |
Index
- Repositories: 294
- Repositories high signal: 222
- Packages: 1
Exploitation
- Known exploited by: vulncheck
- Vulncheck known exploited since: 2024-08-22
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2024-09-13
- Remote: yes
- Checked, none or zero: known exploited, exploitation seen, initial access, authentication required
- Not known: known exploited since, initial access since, hackerone reports, exposed hosts