VDB

CVE-2024-6587

CVE-2024-6587 PUBLISHED CVSS 7.5 HIGH

SSRF in berriai/litellm

Reported by @huntr_ai · Published September 13, 2024

litellm is fixed in 1.44.8 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
litellmPyPI1.44.8
berriai/litellmberriai1.44.9
litellmberriai1.44.9

Risk scores

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

Affected products

VendorProductVersions
berriaiberriai/litellmunspecified
berriaiberriai/litellm*
PyPIlitellm0
berriailitellm0

Timeline

  • Jul 22, 2024 Nuclei Template
  • Jul 22, 2024 Fix Commit
  • Aug 22, 2024 VulnCheck KEV Exploitation (313 in total, the first dated here)
  • Sep 13, 2024 CVE Published
  • Sep 13, 2024 CVE Updated
  • Sep 14, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 5, 2024 Coalition ESS Score (14 in total, the first dated here)
  • Mar 9, 2025 PoC Published
  • Mar 10, 2026 Security Advisory
  • Apr 20, 2026 CrowdSec Sighting (94 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-6587
vulnetix vdb fixes CVE-2024-6587

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-6587/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›