← Vulnerability feed

Vulnerability record · CVE-2026-42208 · published 8 May 2026

CVE-2026-42208: LiteLLM proxy SQL injection in API key check

Litellm · Litellm

LiteLLM versions 1.81.16 to before 1.83.7 build a database query for proxy API key checks by concatenating the caller-supplied key into the query text rather than binding it as a parameter. An unauthenticated attacker can reach that query through the proxy's error-handling path by sending a crafted Authorization header to any LLM API route, such as POST /chat/completions. Because the proxy stores and manages upstream LLM credentials, a successful injection puts both the database and those credentials at risk.

9.3 CVSS 4.0 Critical CISA KEV since 8 May 2026 EPSS 5.8% · top 7.2% CWE-89 · SQL injection
9.3CVSS 4.0 base score
5.8%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
1Affected product versions listed by NVD
6References
15 Jul 2026Last modified by NVD

Description

LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. From version 1.81.16 to before version 1.83.7, a 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. An 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. This issue has been patched in version 1.83.7.

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 17 September 2026. Confidence: high.

critical priorityUnauthenticated, network-reachable SQL injection with high confidentiality and integrity impact, a CVSS 4.0 score of 9.3, KEV listing and a very high EPSS probability.

What it is

LiteLLM versions 1.81.16 to before 1.83.7 build a database query for proxy API key checks by concatenating the caller-supplied key into the query text rather than binding it as a parameter. An unauthenticated attacker can reach that query through the proxy's error-handling path by sending a crafted Authorization header to any LLM API route, such as POST /chat/completions. Because the proxy stores and manages upstream LLM credentials, a successful injection puts both the database and those credentials at risk.

Impact

An attacker can read data from the proxy's database and may be able to modify it, gaining unauthorised access to the proxy and the credentials it manages. This can expose upstream LLM API keys and other secrets held by the gateway.

Attack surface

Reachable over the network with no authentication and no user interaction: a crafted Authorization header sent to any LLM API route (for example POST /chat/completions) reaches the vulnerable query via the proxy's error-handling path. The CVSS 4.0 vector confirms AV:N, AC:L, PR:N and UI:N.

Exploitation

CVE-2026-42208 was added to CISA KEV on 2026-05-08 with a 2026-05-11 remediation due date, indicating known exploitation; EPSS gives a 30-day probability of 0.8942 (99.776th percentile). No ransomware campaign use is documented.

What to do

  • Upgrade LiteLLM to version 1.83.7 or later, which contains the patch.
  • If immediate upgrade is not possible, restrict network access to the LiteLLM proxy so only trusted clients can reach LLM API routes.
  • Rotate all upstream LLM API keys and other credentials managed by the proxy, since database read and possible write access could have exposed them.
  • Review proxy database contents and access logs for signs of tampering or unexpected reads.
  • Follow CISA KEV required action and applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

Detection

  • Search proxy and web logs for Authorization headers containing SQL metacharacters (quotes, comment sequences, UNION, stacked statements) sent to LLM API routes such as /chat/completions.
  • Monitor for requests that trigger the proxy's error-handling path on API key checks, especially repeated or malformed Authorization values from a single source.
  • Alert on database queries or errors originating from the proxy that contain caller-supplied key text rather than bound parameters.
  • Audit proxy database and credential store for unexpected reads, modifications, or new entries that do not match normal key provisioning.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Exploitation in the wild

CISA added CVE-2026-42208 to the Known Exploited Vulnerabilities catalog on 8 May 2026 as "BerriAI LiteLLM SQL Injection Vulnerability". Required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. Federal deadline 11 May 2026.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2026-42208 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.4CVE-2026-33634Trivy and trivy-action supply chain compromise via malicious release and tagsA threat actor used compromised credentials to publish a malicious Trivy v0.69.4 release, force-push 76 of 77 version tags in aquasecurity/trivy-acti…KEVEPSS 1.7%analysed8.8CVE-2026-59822LiteLLM MCP endpoint auth bypass via OAuth2 passthrough fallbackLiteLLM's MCP Streamable HTTP endpoint, prior to 1.84.0, let an unauthenticated attacker send a fabricated Authorization header that triggered an OAu…KEVEPSS 0.84%analysed8.7CVE-2026-42271LiteLLM MCP test endpoints allow authenticated OS command injectionLiteLLM versions 1.74.2 through before 1.83.7 expose two MCP preview endpoints (POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list) th…KEVEPSS 13%analysed9.8CVE-2024-5751Litellm code injection vulnerabilityBerriAI/litellm version v1.35.8 contains a vulnerability where an attacker can achieve remote code execution. The vulnerability exists in the `add_de…EPSS 0.88%9.8CVE-2024-2952Litellm vulnerabilityBerriAI/litellm is vulnerable to Server-Side Template Injection (SSTI) via the `/completions` endpoint. The vulnerability arises from the `hf_chat_te…EPSS 1.3%9.5CVE-2026-49468Litellm authentication bypass by spoofing vulnerabilityLiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. Prior to 1.84.0, a Host-header parsing flaw in the LiteLLM prox…EPSS 0.82%9.4CVE-2026-35030Litellm improper authentication vulnerabilityLiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. Prior to 1.83.0, when JWT authentication is enabled (enable_jwt…EPSS 0.88%8.8CVE-2026-40217Litellm code injection vulnerabilityLiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI.EPSS 3.4%

Source: NIST National Vulnerability Database (record CVE-2026-42208), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.