SQL Injection in Berriai Berriai/litellm
CVE-2024-5225
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).
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.004 (34.6th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 35th percentile — 34.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: 0.000
Affected products
- Berriai Berriai/litellm — versions unspecified
- Litellm
Weakness classification (CWE)
References
- huntr.com/bounties/491e4884-0306-4cd4-8fe2-9a19de33bf5c (Exploit, Third Party Advisory)
Frequently asked questions
- What is CVE-2024-5225?
- CVE-2024-5225 is a high-severity vulnerability in Berriai Berriai/litellm, classified under SQL Injection. CVSS score: 7.2/10. Published 2024-06-06.
- How severe is CVE-2024-5225?
- High severity. CVSS v3 base score is 7.2 out of 10.