Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. litellm
  4. ›
  5. CVE-2024-6587

CVE-2024-6587: LiteLLM Server-Side Request Forgery (SSRF) vulnerability

September 13, 2024

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.

References

  • github.com/advisories/GHSA-g26j-5385-hhw3
  • github.com/berriai/litellm
  • github.com/berriai/litellm/commit/ba1912afd1b19e38d3704bb156adf887f91ae1e0
  • huntr.com/bounties/4001e1a2-7b7a-4776-a3ae-e6692ec3d997
  • nvd.nist.gov/vuln/detail/CVE-2024-6587

Code Behaviors & Features

Detect and mitigate CVE-2024-6587 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.44.8

Fixed versions

  • 1.44.8

Solution

Upgrade to version 1.44.8 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

pypi/litellm/CVE-2024-6587.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:17 +0000.