
Briefing di threat intelligence su CVE-2026-42208, una critica SQL injection pre-autenticazione in BerriAI LiteLLM sfruttata entro 36 ore dalla divulgazione. Copre il percorso di attacco, le opportunità di rilevamento e le azioni raccomandate.
CVE: CVE-2026-42208
GHSA: GHSA-r75f-5x8p-qvmc
CVSS Score: 9.3 (Critical)
Affected Software: BerriAI LiteLLM versions >= 1.81.16, < 1.83.7
Fixed Version: 1.83.7-stable (released April 19, 2026)
CISA KEV Added: May 08, 2026
Sources: CISA KEV, Sysdig TRT, The Hacker News, Security Affairs
A critical pre-authentication SQL injection vulnerability in BerriAI's LiteLLM Python package was actively exploited in the wild within 36 hours of public disclosure. LiteLLM is an open-source AI gateway with 22,000+ GitHub stars, widely used by organizations to manage API calls across multiple LLM providers including OpenAI, Anthropic, and cloud-hosted models. Successful exploitation gives an unauthenticated attacker read and write access to the proxy database, which stores LLM provider API keys, cloud credentials, virtual keys, and spend budget configurations. CISA added this vulnerability to the Known Exploited Vulnerabilities (KEV) catalog on May 08, 2026.
LiteLLM is a proxy server that exposes an OpenAI-compatible REST API as a unified front end for dozens of upstream LLM providers. Organizations use it to centralize LLM access control, apply rate limiting, track spend, and manage credentials across multiple model providers from a single point. The proxy stores API keys and cloud provider credentials in a PostgreSQL backend database.
The centralized credential storage is what makes this vulnerability particularly high-impact. A compromised LiteLLM instance does not just expose one API key -- it potentially exposes every cloud credential the organization has configured across all LLM providers.
The flaw exists in LiteLLM's proxy API key verification process. When a request arrives, the proxy checks the Authorization: Bearer header value against its database to authenticate the caller. In affected versions, the bearer token value was concatenated directly into the SQL query string instead of being passed as a parameterized input:
# Vulnerable pattern (before v1.83.7)
cursor.execute(f"SELECT * FROM LiteLLM_VerificationToken WHERE key = '{api_key}'")
A single quote in the bearer value allows an attacker to escape the string literal and append arbitrary SQL statements. Because the injection point is in the authentication check itself, no valid credentials are needed to trigger it.
POST /chat/completions)Authorization: Bearer header contains a SQL injection payloadSysdig's Threat Research Team observed real-world exploitation attempts targeting:
LiteLLM_VerificationToken table -- virtual API keys and access controls| Date/Time | Event |
|---|---|
| April 19, 2026 | Patch released (LiteLLM v1.83.7-stable) |
| April 20, 2026 21:14 UTC | Maintainer-side repository advisory published |
| April 24, 2026 16:17 UTC | Advisory indexed in GitHub global advisory database (defender feeds surface here) |
| April 26, 2026 16:24 UTC | First exploitation attempt observed by Sysdig TRT -- 36 hours 7 minutes after indexing |
| May 08, 2026 | CISA adds CVE-2026-42208 to KEV catalog |
The 36-hour exploitation window is consistent with an organized threat actor using automated scanning to monitor new CVE publications and rapidly develop or adapt exploit code. SQL injection is a well-understood class of vulnerability -- once the affected code path is identified, weaponization is straightforward.
Confidentiality: High -- database contents readable, including credentials
Integrity: High -- database writable, keys can be added, modified, or deleted
Availability: Medium -- proxy can be disrupted through database modification
Authentication required: None -- fully pre-authentication
Network access required: Yes -- attacker must be able to reach the proxy port
Why this matters beyond a typical SQLi: LiteLLM is specifically designed to centralize credential management. An organization running a compromised LiteLLM instance may have configured it with API keys for OpenAI, Anthropic, Azure OpenAI, AWS Bedrock, and other providers. Each of those keys represents access to paid LLM services with potentially significant spend limits. Beyond LLM spend abuse, cloud provider credentials in the database could enable lateral movement into AWS, Azure, or GCP environments.
| Status | Versions |
|---|---|
| Vulnerable | >= 1.81.16 and < 1.83.7 |
| Patched | >= 1.83.7-stable |
Look for HTTP requests to LiteLLM endpoints containing SQL metacharacters in the Authorization header:
Authorization: Bearer ' OR 1=1--
Authorization: Bearer '; SELECT * FROM LiteLLM_VerificationToken--
Authorization: Bearer ' UNION SELECT--
Indicators to hunt for in proxy logs:
/chat/completions, /embeddings, or other API routes with malformed bearer tokensLiteLLM_VerificationToken with unusual WHERE clauses| Technique | ID | Description |
|---|---|---|
| Exploit Public-Facing Application | T1190 | SQL injection against internet-accessible LiteLLM proxy |
| Credentials from Password Stores | T1555 | Extraction of API keys and cloud credentials from proxy database |
| Valid Accounts: Cloud Accounts | T1078.004 | Use of stolen cloud provider credentials post-exploitation |
Immediate (if running affected versions):
Short-term: 5. Restrict network access to the LiteLLM proxy port -- it should not be directly internet-facing without authentication in front of it 6. Enable database query logging to detect future injection attempts 7. Add WAF rules to inspect Authorization headers for SQL metacharacters
Ongoing: 8. Subscribe to CISA KEV alerts -- this vulnerability was being actively exploited before most patch cycles would have caught it 9. Treat AI infrastructure as high-value credential stores -- the same security controls applied to secrets managers should apply to LLM proxy deployments
Why AI infrastructure is a growing target: LiteLLM and similar tools sit at a privileged position -- they hold credentials to paid cloud services with high spend limits and are often deployed by engineering teams rather than security teams, with less mature security review. The Sysdig team specifically noted that LiteLLM operators "trust it to centralize cloud-grade credentials," making it an attractive target for credential theft and LLM service abuse (using stolen API keys to run their own queries against paid models).
The 36-hour exploitation window is a benchmark: This is not an anomaly. Threat actors actively monitor CVE publication feeds and advisory databases. For critical, pre-auth vulnerabilities in widely-used open-source software, assume exploitation begins within 24-48 hours of public disclosure. Patch SLAs need to account for this reality -- a 30-day patch window is not appropriate for CVSS 9+ pre-auth vulnerabilities.
CISA KEV as a prioritization signal: The KEV catalog only includes vulnerabilities with confirmed real-world exploitation. If a CVE appears in KEV, it is not theoretical -- someone has already used it against real targets. Organizations should treat KEV additions as immediate action items regardless of their internal CVSS-based prioritization thresholds.