# CVE-2024-6587: SSRF in berriai/litellm

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2024-09-13 · Modified: 2024-09-13
- Aliases: GHSA-g26j-5385-hhw3, PYSEC-2026-1547
- Record: https://cvemate.com/vulnerability/CVE-2024-6587 · JSON: https://cvemate.com/vulnerability/CVE-2024-6587/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.0, CVE.org) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 34.375%, percentile 98.452%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- berriai berriai/litellm: ≥ unspecified, \< 1.44.9
- litellm litellm: 1.38.10
- PyPI litellm (PyPI): \< 1.44.8

## References

- <https://huntr.com/bounties/4001e1a2-7b7a-4776-a3ae-e6692ec3d997>
- <https://github.com/berriai/litellm/commit/ba1912afd1b19e38d3704bb156adf887f91ae1e0>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6587>
- <https://github.com/berriai/litellm>
- <https://pypi.org/project/litellm>
- <https://github.com/advisories/GHSA-g26j-5385-hhw3>

---

Data as of 2026-12-05T13:05:39.596Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
