CVE-2024-6587
SSRF in berriai/litellm
Record summary
EIP currently links 1 Nuclei template to CVE-2024-6587.
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.
Exploitation context
Known exploitation
- VulnCheck KEV
- Listed · Aug 22, 2024 · VulnCheck
- Reported exploitation
- Observed · VulnCheck
Available material
- Nuclei templates
- 1
CISA SSVC decision
CISA Coordinator · SSVC 2.0.3 · Evaluated Sep 13, 2024 · Source: CVE List
Affected products and versions
4| Product | Source | Version range | Status |
|---|---|---|---|
LiteLLMBrowse LiteLLM / LiteLLM | VulnCheck | Version data not supplied | |
berriai/litellmBrowse berriai / berriai/litellm | CVE List | Before 1.44.9 | affected |
litellmBrowse berriai / litellmDefault status: unknown | CVE List | Before 1.44.9 | affected |
litellmBrowse PyPI / litellm | GitHub Advisory | Before 1.44.8 · Fixed in 1.44.8 | affected |
Nuclei templates
1ProjectDiscoveryHIGHLiteLLM - Server-Side Request Forgery
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.
Source: ProjectDiscovery