Vulnerabilities in pkg:pypi/litellm
PACKAGECVE-2026-42208 is a CRITICAL (CVSS 9.8) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Litellm libraries in the PyPI ecosystem. The issue involves litellm has sql injection in proxy api key verification. Remediation is available by upgrading affected packages to version 1.83.7.
pkg:pypi/litellm
Vulnerability advisories affecting package pkg:pypi/litellm. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-r75f-5x8p-qvmc | CVE-2026-42208 | CRITICAL | LiteLLM has SQL Injection in Proxy API key verification |
| GHSA-3cv6-jpf6-8222 | CVE-2026-84377 | MODERATE | LiteLLM: Authenticated SSRF and provider-credential exfiltration via unvalidated request-body routing parameters |
| GHSA-hx8v-g79f-8w5f | CVE-2026-59823 | MODERATE | LiteLLM Proxy has server-side request forgery via the `user_config` request parameter |
| GHSA-m2v5-74w2-qhcj | CVE-2026-12799 | LOW | BerriAI litellm: UI User Enumeration leads to System-Wide Information Disclosure |
| GHSA-c693-x898-5g4h | CVE-2026-12798 | LOW | BerriAI litellm has SSRF via Unvalidated spec_path URL in MCP OpenAPI Spec Loader |
| GHSA-p897-vf7j-f5h8 | CVE-2026-12797 | LOW | BerriAI litellm has Security Feature Bypass in BannedKeywords and AzureContentSafety Guardrails via call_type Mismatch on Async Endpoints |
| GHSA-w2mh-qq9q-453x | CVE-2026-12796 | LOW | BerriAI litellm: SSO Login Does Not Invalidate Previous UI Session Tokens |
| GHSA-j37q-q7p9-vpwm | CVE-2026-12795 | MODERATE | LiteLLM: SSO Debug Flow Has Improper Authentication |
| GHSA-6qr3-3g89-m4jj | CVE-2026-12770 | LOW | LiteLLM: Admin Key Handler Has Improper Authorization |
| GHSA-4jcj-7x88-m979 | CVE-2026-12773 | MODERATE | LiteLLM: MCP Proxy Has Improper Authentication |
| GHSA-qmf3-4767-5fg3 | CVE-2026-12771 | LOW | LiteLLM: M2M JWT Handler Has Improper Authorization |
| GHSA-mf52-j94g-746m | CVE-2026-12772 | LOW | LiteLLM: PROXY_ADMIN database API Key Generator Has Insufficient Session Expiration |
| GHSA-6wvf-77m9-58rm | CVE-2026-37004 | CRITICAL | LiteLLM vulnerable to server-side template injection in the /prompts/test endpoint |
| GHSA-72m8-9m7m-h278 | CVE-2026-59821 | LOW | LiteLLM: Custom Code Guardrails production endpoints bypass code safety checks |
| GHSA-7488-6r32-c95q | CVE-2026-59822 | HIGH | LiteLLM: MCP Authentication Bypass via OAuth2 Passthrough Fallback |
| GHSA-4g5m-c9r5-49xf | CVE-2026-59819 | LOW | LiteLLM: Local file read via request-supplied OIDC file references |
| GHSA-5jmr-gcrj-2c9q | CVE-2026-59820 | MODERATE | LiteLLM: Arbitrary file write via path traversal in Skills archive extraction |
| GHSA-4xpc-pv4p-pm3w | CVE-2026-49468 | CRITICAL | LiteLLM: Authentication Bypass via Host Header Injection |
| GHSA-46cm-pfwv-cgf8 | CVE-2024-2952 | CRITICAL | LiteLLM has Server-Side Template Injection vulnerability in /completions endpoint |
| GHSA-wpfp-gwwc-vwq6 | CVE-2026-47102 | HIGH | LiteLLM allows a user to modify their own user_role via the /user/update endpoint |
| GHSA-qrc4-49gv-mv9m | CVE-2026-47101 | HIGH | LiteLLM allows an authenticated internal_user to create API keys with access to routes that their role does not permit |
| GHSA-v4p8-mg3p-g94g | CVE-2026-42271 | HIGH | LiteLLM: Authenticated command execution via MCP stdio test endpoints |
| GHSA-xqmj-j6mv-4862 | CVE-2026-42203 | HIGH | LiteLLM: Server-Side Template Injection in /prompts/test endpoint |
| GHSA-wxxx-gvqv-xp7p | CVE-2026-40217 | HIGH | LiteLLM has a sandbox escape in custom-code guardrail |
| GHSA-3926-2jvf-fg29 | - | HIGH | Duplicate Advisory: LiteLLM has a sandbox escape in custom-code guardrail |
| GHSA-53mr-6c8q-9789 | CVE-2026-35029 | HIGH | LiteLLM: Privilege escalation via unrestricted proxy configuration endpoint |
| GHSA-69x8-hrgq-fjj8 | - | HIGH | LiteLLM: Password hash exposure and pass-the-hash authentication bypass |
| GHSA-jjhc-v7c2-5hh6 | CVE-2026-35030 | CRITICAL | LiteLLM: Authentication bypass via OIDC userinfo cache key collision |
| GHSA-5mg7-485q-xm76 | - | CRITICAL | Two LiteLLM versions published containing credential harvesting malware |
| GHSA-fh2c-86xm-pm2x | CVE-2024-8984 | HIGH | LiteLLM Vulnerable to Denial of Service (DoS) via Crafted HTTP Request |
| GHSA-53gh-p8jc-7rg8 | CVE-2024-6825 | HIGH | LiteLLM Vulnerable to Remote Code Execution (RCE) |
| GHSA-g5pg-73fc-hjwq | CVE-2024-9606 | HIGH | LiteLLM Reveals Portion of API Key via a Logging File |
| GHSA-fjcf-3j3r-78rp | CVE-2025-0628 | HIGH | LiteLLM Has an Improper Authorization Vulnerability |
| GHSA-879v-fggm-vxw2 | CVE-2025-0330 | HIGH | LiteLLM Has a Leakage of Langfuse API Keys |
| GHSA-gw2q-qw9j-rgv7 | CVE-2024-10188 | HIGH | LiteLLM Vulnerable to Denial of Service (DoS) |
| GHSA-3xr8-qfvj-9p9j | CVE-2024-4888 | HIGH | Arbitrary file deletion in litellm |
| GHSA-g26j-5385-hhw3 | CVE-2024-6587 | HIGH | LiteLLM Server-Side Request Forgery (SSRF) vulnerability |
| GHSA-qqcv-vg9f-5rr3 | CVE-2024-5710 | MODERATE | litellm vulnerable to improper access control in team management |
| GHSA-gppg-gqw8-wh9g | CVE-2024-5751 | CRITICAL | litellm vulnerable to remote code execution based on using eval unsafely |
| GHSA-h6m6-jj8v-94jj | CVE-2024-5225 | MODERATE | SQL injection in litellm |
| GHSA-8j42-pcfm-3467 | CVE-2024-4890 | MODERATE | SQL injection in litellm |
| GHSA-7ggm-4rjg-594w | CVE-2024-4264 | HIGH | litellm passes untrusted data to `eval` function without sanitization |
CVE-2026-42208 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-42208
To remediate this vulnerability, upgrade all affected Litellm dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install litellm>=1.83.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show litellm
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-42208, inspect your installed packages using pip:
pip show litellm
Analyze the terminal output to locate any version of Litellm in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.83.7), your application is affected.
Note: The pip show litellm command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Litellm, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-42208 Affected Litellm Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
litellm
|
PyPI |
≥ 1.81.16
< 1.83.7
|
1.83.7
|
References
Frequently Asked Questions
What is CVE-2026-42208?
Which Litellm versions are affected?
What version fixes CVE-2026-42208?
Is litellm affected?
What is the CVSS score of CVE-2026-42208?
What CWE is associated with CVE-2026-42208?
How can I check PyPI dependencies for CVE-2026-42208?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r75f-5x8p-qvmc",
"modified" : "2026-10-05T18:39:54Z",
"published" : "2026-04-24T16:17:07Z",
"aliases" : [ "CVE-2026-42208" ],
"summary" : "LiteLLM has SQL Injection in Proxy API key verification",
"details" : "### Impact\n\nA database query used during proxy API key checks mixed the caller-supplied key value into the query text instead of passing it as a separate parameter. An unauthenticated attacker could send a specially crafted `Authorization` header to any LLM API route (for example `POST /chat/completions`) and reach this query through the proxy's error-handling path.\n\nAn attacker could read data from the proxy's database and may be able to modify it, leading to unauthorised access to the proxy and the credentials it manages.\n\n### Patches\n\nFixed in **`1.83.7`**. The caller-supplied value is now always passed to the database as a separate parameter. Upgrade to `1.83.7` or later.\n\n### Workarounds\n\nIf upgrading is not immediately possible, set `disable_error_logs: true` under `general_settings`. This removes the path through which unauthenticated input reaches the vulnerable query.\n\n### References\n\n- Patched release: [`v1.83.7-stable`](https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable)\n\n**Discovery Credit**: Tencent YunDing Security Lab",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "litellm"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.81.16"
}, {
"fixed" : "1.83.7"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/BerriAI/litellm/security/advisories/GHSA-r75f-5x8p-qvmc"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42208"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/security/cve/CVE-2026-42208"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2463965"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/BerriAI/litellm"
}, {
"type" : "WEB",
"url" : "https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-r75f-5x8p-qvmc"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/litellm/PYSEC-2026-391.yaml"
}, {
"type" : "WEB",
"url" : "https://pypi.org/project/litellm"
}, {
"type" : "WEB",
"url" : "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-42208"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-24T16:17:07Z",
"nvd_published_at" : "2026-05-08T04:16:19Z"
}
}