Skip to content
HighVulnerabilityLLM-specific

CVE-2024-6587: litellm server-side request forgery through api_base in chat completions

Identifier
CVE-2024-6587
Published
Record updated
View JSON
Affected
  • litellm < 1.44.8
Fixed in
1.44.8
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
34.4%

Summary

CVE-2024-6587 is a Server-Side Request Forgery (SSRF) flaw in berriai/litellm version 1.38.10. Users can set the `api_base` parameter on requests to `POST /chat/completions`, and the application then sends the request, including the OpenAI API key, to the domain that `api_base` specifies. A malicious user can point `api_base` at their own domain and intercept the OpenAI API key, which enables unauthorized access and potential misuse of the API key.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.