Live threats

All CVEs / Litellm

CVE-2024-5225Litellm

High 7.2

Priority
43
CVSS 3.1
7.2
EPSS
0.7%
probability of exploitation in 30 days · percentile 48
Auth required
Yes
Published
Jun 6, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-89
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

What happens

An SQL Injection vulnerability exists in the berriai/litellm repository, specifically within the `/global/spend/logs` endpoint. The vulnerability arises due to improper neutralization of special elements used in an SQL command. The affected code constructs an SQL query by concatenating an unvalidated `api_key` parameter directly into the query, making it susceptible to SQL Injection if the `api_key` contains malicious data. This issue affects the latest version of the repository. Successful exploitation of this vulnerability could lead to unauthorized access, data manipulation, exposure of confidential information, and denial of service (DoS).

Original NVD text.

What to do

  1. Apply the vendor's security update for Litellm.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI litellm < 1.40.0 1.40.0 pip install "litellm>=1.40.0"
PyPI litellm < 1.40.0 1.40.0 pip install "litellm>=1.40.0"

Per OSV / GitHub Advisories (GHSA-h6m6-jj8v-94jj, PYSEC-2026-1550). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
litellmlitellm≤ 1.40.2

Official sources

References

Links published by the sources. Open them with care.