CVE-2024-5225Litellm
High 7.2
Follow: this CVE · Litellm · Litellm We alert you by email or Slack (account required).
- 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).
What to do
- Apply the vendor's security update for Litellm.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| litellm | litellm | ≤ 1.40.2 |
Official sources
References
Links published by the sources. Open them with care.
- huntr.com Exploit Third Party Advisory