CVE-2024-6587

CVE-2024-6587 is a high-severity vulnerability in Litellm with a CVSS 3.x base score of 7.5. Its EPSS exploit-prediction score of 37% places it in the 98th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-918.

Key facts

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.

Frequently asked questions

What is CVE-2024-6587?
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.
How severe is CVE-2024-6587?
CVE-2024-6587 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
Is CVE-2024-6587 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 37% (98th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-6587?
CVE-2024-6587 affects Litellm. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2024-6587?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
Does CVE-2024-6587 have an EU (EUVD) identifier?
Yes. CVE-2024-6587 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-2785.
When was CVE-2024-6587 published?
CVE-2024-6587 was published on 2024-09-13 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Litellm

All CVEs affecting Litellm →

Other CWE-918 (Server-Side Request Forgery (SSRF)) vulnerabilities

Browse all CWE-918 (Server-Side Request Forgery (SSRF)) vulnerabilities →