CVE-2024-6587
highpriority · track · 42EPSS 0.344 · 98 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-g26j-5385-hhw3LiteLLM Server-Side Request Forgery (SSRF) vulnerability2024-09-13ghsa · osvUS
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.
- PYSEC-2026-1547LiteLLM Server-Side Request Forgery (SSRF) vulnerability2026-07-07vendor · osvUS
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.
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (8)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2024-6587/cnnvd
- https://github.com/BerriAI/litellm/releases/tag/v1.45.0Patchcnnvd
- https://github.com/berriai/litellm/commit/ba1912afd1b19e38d3704bb156adf887f91ae1e0cnnvd
- https://huntr.com/bounties/4001e1a2-7b7a-4776-a3ae-e6692ec3d997cnnvd
- https://github.com/berriai/litellm/commit/ba1912afd1b19e38d3704bb156adf887f91ae1e0enisa_euvd
- https://huntr.com/bounties/4001e1a2-7b7a-4776-a3ae-e6692ec3d997enisa_euvd
- https://github.com/berriai/litellm/commit/ba1912afd1b19e38d3704bb156adf887f91ae1e0Patchnvd
- https://huntr.com/bounties/4001e1a2-7b7a-4776-a3ae-e6692ec3d997ExploitThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan