Browse / AI Framework and Platform Flaws / CVE-2024-4890
SQL injection in litellm
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2024-4890
- https://github.com/BerriAI/litellm/pull/2954
- https://github.com/BerriAI/litellm
- https://huntr.com/bounties/a4f6d357-5b44-4e00-9cac-f1cc351211d2
Source: GitHub Advisory Database, used under CC BY 4.0.