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

EPSS: 0.004 (35.2th percentile) — read the EPSS interpretation.

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.

Affected products

Weakness classification (CWE)

References

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.