SQL Injection Affecting litellm package, versions [,1.40.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.06% (26th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-LITELLM-7218855
  • published7 Jun 2024
  • disclosed6 Jun 2024
  • creditCodeVigilante

Introduced: 6 Jun 2024

CVE-2024-5225  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade litellm to version 1.40.0 or higher.

Overview

litellm is a Library to easily interface with LLM API providers

Affected versions of this package are vulnerable to SQL Injection through the /global/spend/logs endpoint. An authenticated attacker can manipulate data and potentially gain unauthorized access by injecting malicious SQL commands into the api_key parameter.

CVSS Scores

version 3.1