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

- Severity: High 7.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 34.4%, higher than 98% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-09-13T15:59:53.557Z
- Modified: 2026-09-10T03:50:56.061Z
- Also known as: GHSA-g26j-5385-hhw3, PYSEC-2026-1547
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- berriai berriai/litellm: from unspecified before 1.44.9
- berriai litellm: before 1.44.9
- litellm (PyPI): before 1.44.8
- litellm litellm: 1.38.10

## Every score

- @huntr_ai: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`

## References

- <https://huntr.com/bounties/4001e1a2-7b7a-4776-a3ae-e6692ec3d997> (exploit, third-party-advisory, web)
- <https://github.com/berriai/litellm/commit/ba1912afd1b19e38d3704bb156adf887f91ae1e0> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6587> (advisory)
- <https://github.com/berriai/litellm> (package)
- <https://pypi.org/project/litellm> (package)
- <https://github.com/advisories/GHSA-g26j-5385-hhw3> (advisory)

## Sources

- CVE List: [CVE-2024-6587](https://www.cve.org/CVERecord?id=CVE-2024-6587), CVE Terms of Use, modified 2024-09-13
- GitHub Advisory Database: [GHSA-g26j-5385-hhw3](https://github.com/advisories/GHSA-g26j-5385-hhw3), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-6587](https://nvd.nist.gov/vuln/detail/CVE-2024-6587), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1547](https://osv.dev/vulnerability/PYSEC-2026-1547), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-6587 · Whole record: https://cve.day/CVE-2024-6587.json · Rebuilt by cve.day 2026-11-25T22:58:45.411Z
