Vulnerability · Published Sep 13, 2024 · Assigned by @huntr_ai

CVE-2024-6587SSRF in berriai/litellm

High 7.5

In plain English

A high-severity server-side request forgery in berriai/litellm from berriai. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 34.4% (higher than 98% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)7.5High
Exploit odds (30 days)34.4%top 1.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Nuclei

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIlitellm1.44.8GHSA-g26j-5385-hhw3
PyPIlitellm1.44.8PYSEC-2026-1547

Affected products (as reported)

VendorProductVersions
berriai berriai/litellm unspecified – before 1.44.9

Weakness: CWE-918 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

References