INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2024-4890

SQL injection in litellm

CVE-2024-4890 ยท 2024-06-06 moderate

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
SQL and query injection
Affected
litellm (PyPI)
CVSS
CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
EPSS
0.6% chance of exploitation in 30 days

How it works, in short

The team update route places the user_id value directly into a raw SQL delete statement, letting attackers run blind queries to extract stored keys and tokens. (Our summary, written by a model. The source text is below.)

Details

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.

References

Source: GitHub Advisory Database, used under CC BY 4.0.