Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVE-2024-5225
Summary
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. Successful exploitation of this vulnerability could lead to unauthorized access, data manipulation, exposure of confidential information, and Denial of Service (DoS). This issue affects litellm versions 1.28.3 through 1.40.0.dev1.
- LOW
- NETWORK
- HIGH
- UNCHANGED
- NONE
- HIGH
- HIGH
- HIGH
CWE-89 - SQL Injection
Structured Query Language (SQL) injection attacks are one of the most common types of vulnerabilities. They exploit weaknesses in vulnerable applications to gain unauthorized access to backend databases. This often occurs when an attacker enters unexpected SQL syntax in an input field. The resulting SQL statement behaves in the background in an unintended manner, which allows the possibility of unauthorized data retrieval, data modification, execution of database administration operations, and execution of commands on the operating system.
References
Advisory Timeline
- Published