{"cve":"CVE-2024-5225","nvd":{"published":"2024-06-06T19:16:06.673","modified":"2026-06-17T08:15:27.053","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2},"cwes":["CWE-89"],"references":["https://huntr.com/bounties/491e4884-0306-4cd4-8fe2-9a19de33bf5c","https://huntr.com/bounties/491e4884-0306-4cd4-8fe2-9a19de33bf5c"],"products":["litellm:litellm"],"source":"nvd","synced_at":"2026-10-19T21:51:20.603330631+00:00"},"epss":{"cve":"CVE-2024-5225","score":0.00429,"percentile":0.37134,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-h6m6-jj8v-94jj","url":"https://osv.dev/vulnerability/GHSA-h6m6-jj8v-94jj","summary":"SQL injection in litellm","modified":"2026-09-10T03:50:15.470806763Z","packages":[{"ecosystem":"PyPI","name":"litellm","purl":"pkg:pypi/litellm","ranges":["<1.40.0"],"fixed":["1.40.0"]}]},{"id":"PYSEC-2026-1550","url":"https://osv.dev/vulnerability/PYSEC-2026-1550","summary":"SQL injection in litellm","modified":"2026-07-07T17:47:31.656864316Z","packages":[{"ecosystem":"PyPI","name":"litellm","purl":"pkg:pypi/litellm","ranges":["<1.40.0"],"fixed":["1.40.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}