CVE-2024-4890 Blind SQL Injection in berriai/litellm
An attacker can inject SQL via the user_id parameter to read sensitive database information like API keys and tokens.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-4890?
CVE-2024-4890 is a medium-severity SQL injection vulnerability in berriai/litellm, published on 6 Jun 2024. An attacker needs administrator access to exploit it, with no action from the victim.
Official 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.
Weakness: CWE-89
Which versions are affected by CVE-2024-4890?
3 open source packages ship an affected version, including litellm. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
litellm PyPI | All versions to 1.27.14 | None |
litellm PyPI | All versions to 1.27.14 | None |
litellm PyPI | All versions to 1.27.14 | None |
Products include Litellm Litellm.
How do I fix CVE-2024-4890?
No fix has been published for CVE-2024-4890 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2024-4890 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-4890 exists.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in berriai/litellm
Sources
Also known as GHSA-8j42-pcfm-3467, PYSEC-2026-1544.