Skip to content
SQL injection Disclosed report Intermediate CVE-2024-4890

SQL injection in litellm

The '/team/update' endpoint in litellm builds a raw SQL query for deleting users without properly handling the 'user_id' parameter, allowing blind SQL injection. An attacker could use this to read sensitive data such as API keys, user information and tokens from the database.

BerriAI/litellm

Originally disclosed on huntr

A blind SQL injection vulnerability exists in the berriai/litellm application, specifically within the '/team/update' process. The vulnerability arises due to the improper handling of the 'user_id' parameter in the raw SQL query used for deleting users. An attacker can exploit this vulnerability by injecting malicious SQL commands through the 'user_id' parameter, leading to potential unauthorized access to sensitive information such as API keys, user information, and tokens stored in the database. The affected version is 1.27.14.

From the GitHub Advisory Database (GHSA-8j42-pcfm-3467, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could gain unauthorised access to sensitive information such as API keys, user information and tokens stored in the database.

What the attacker needed

Access to the /team/update process

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a program builds a database command by pasting in user input, a person can sneak in extra database instructions. Here the 'user_id' value is placed straight into a delete query, so an attacker can change what the database does. This is called SQL injection, and it can let someone read data they should not see.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

More from BerriAI/litellm

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.