High severity · published Jun 6, 2024
CVE-2024-5225
SQL Injection in berriai/litellm
7.2
CVSS
0.4%
EPSS
No
On KEV
Description
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).
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
High
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 37% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
BE
berriai/litellm · berriai
through latest · source: vendor
LI
Litellm · Litellm
through 1.40.2 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-5225
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-5225
Exploit
https://huntr.com/bounties/491e4884-0306-4cd4-8fe2-9a19de33bf5c
More from berriai/litellm
9.8
CVE-2024-5751
Remote Code Execution in BerriAI/litellm
9.8
CVE-2024-4264
Remote Code Execution in berriai/litellm
9.8
CVE-2024-2952
Server-Side Template Injection in BerriAI/litellm
8.8
CVE-2024-6825
Remote Code Execution in BerriAI/litellm
8.1
CVE-2025-0628
Improper Authorization in BerriAI/litellm
