HighVulnerabilityLLM-specific
CVE-2024-6587: litellm server-side request forgery through api_base in chat completions
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2024-6587
- Published
- Record updated
- 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.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- litellmPyPILLM dependency since 2023-07-27 · 55 tracked dependents
Related items
- MediumCVE-2026-121936: easyVoice server-side request forgery through openaiBaseUrl in /api/v1/ttsSimilar attack · NVD/CVE Database
- MediumCVE-2026-118628: MLflow get-artifacts server-side request forgery information disclosureSimilar attack · NVD/CVE Database
- HighCVE-2026-118625: MLflow Tracking Server privilege escalation via get_endpointsSimilar attack · NVD/CVE Database
- InfoWhen trust becomes the payload: Inside the threats, etc quarterly reportSimilar attack · Elastic Security Labs
- MediumCritical Langflow flaws enable authentication bypass and RCESimilar attack · CSO Online