Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2024-5225
Python vulnerability analysis and mitigation

Overview

An SQL Injection vulnerability exists in the berriai/litellm repository, specifically within the /global/spend/logs endpoint. The vulnerability was discovered and disclosed on June 6, 2024, affecting the latest version of the repository up to version 1.40.2. The vulnerability stems from improper neutralization of special elements used in an SQL command, where the code constructs an SQL query by concatenating an unvalidated api_key parameter directly into the query (NVD).

Technical details

The vulnerability is classified as CWE-89 (SQL Injection) with a CVSS v3.1 base score of 7.2 (HIGH) according to NVD's assessment, with a vector string of CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H. The vulnerability occurs when the application processes the api_key parameter in the /global/spend/logs endpoint without proper input validation or sanitization (NVD).

Impact

Successful exploitation of this vulnerability could lead to unauthorized access, data manipulation, exposure of confidential information, and denial of service (DoS). The high severity rating indicates significant potential impact on the system's confidentiality, integrity, and availability (NVD).

Exploitability

The vulnerability requires high privileges but low attack complexity, with no user interaction needed for exploitation. The attack vector is network-accessible, making it possible to exploit remotely (NVD).

Mitigation and workarounds

The vulnerability affects versions up to and including 1.40.2 of the litellm package. Users should update to a patched version when available and implement proper input validation for the api_key parameter (NVD).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66455CRITICAL9.8
  • Python logoPython
  • lmdeploy
NoYesSep 18, 2026
CVE-2026-63374CRITICAL9.3
  • Python logoPython
  • python-anyio
NoYesSep 18, 2026
CVE-2026-59163CRITICAL9.1
  • Python logoPython
  • mnemosyne-memory
NoYesSep 18, 2026
CVE-2026-33625HIGH8.8
  • Python logoPython
  • lmdeploy
NoYesSep 18, 2026
CVE-2026-64847MEDIUM6.8
  • Python logoPython
  • litellm-1.90
NoYesSep 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management