PYSEC-2026-1544
SQL injection in litellm
At a glance
- Published
- Updated
- CVE
- CVE-2024-4890
- Aliases
- GHSA-8j42-pcfm-3467
- CVSS_V3
- CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Description
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.
Affected packages
| Package | Versions |
|---|---|
| PyPI · litellm | introduced 0, last affected 1.27.14 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-4890 ADVISORY
- https://github.com/BerriAI/litellm/pull/2954 WEB
- https://github.com/BerriAI/litellm PACKAGE
- https://huntr.com/bounties/a4f6d357-5b44-4e00-9cac-f1cc351211d2 WEB
- https://pypi.org/project/litellm PACKAGE
- https://github.com/advisories/GHSA-8j42-pcfm-3467 ADVISORY
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — PyPA Advisory Database |