Skip to content
KitploitKITPLOIT
StrumentiBlog
Invia
StrumentiBlog
Invia

Strumenti di Hacking, PenTest e Cybersecurity per il tuo Arsenale di Sicurezza!

Kitploit è una directory di strumenti di hacking, cybersecurity e pentesting. Scopri gli ultimi aggiornamenti dei progetti per trovare vulnerabilità, analizzare sistemi, automatizzare i test e rafforzare la tua sicurezza.

··Feed·Contatto·Privacy·© 2026 Kitploit

Directory degli strumenti

Categorie

Vedi tutte le categorie
Loading categories
threat-intel-brief-cve-2026-42208-litellm — 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. | Kitploit
Strumenti/GitHubGitHub/zeltoc/threat-intel-brief-cve-2026-42208-litellm
Analisi delle VulnerabilitàThreat IntelligenceApprendimento e FormazioneRisorse CurateSicurezza dell'IA
GitHubzeltoc/threat-intel-brief-cve-2026-42208-litellm

threat-intel-brief-cve-2026-42208-litellm

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.

Vedi Repository
3 mesi faNon ancora revisionato

Più Popolari

Vedi tutti →

Scopri gli strumenti più utilizzati dalla nostra community.

Esplora tutti gli strumenti

Sfoglia la nostra collezione di strumenti

Vedi tutti gli strumenti →
Condividi

Threat Intelligence Brief - CVE-2026-42208: BerriAI LiteLLM SQL Injection

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


Executive Summary

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.


What is LiteLLM

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.


Vulnerability Details

Root Cause

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:

root@kitploit:~
# 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.

Attack Path

  1. Attacker sends a crafted HTTP request to any LLM API endpoint (e.g., POST /chat/completions)
  2. The Authorization: Bearer header contains a SQL injection payload
  3. The request flows through the proxy's error-handling path and reaches the vulnerable query
  4. The attacker can execute arbitrary SELECT or potentially INSERT/UPDATE/DELETE statements against the PostgreSQL backend
  5. Database tables containing API keys, provider credentials, and configuration data are exposed

What Attackers Targeted

Sysdig's Threat Research Team observed real-world exploitation attempts targeting:

  • LiteLLM_VerificationToken table -- virtual API keys and access controls
  • Credential storage tables -- upstream LLM provider API keys (OpenAI, Anthropic, etc.)
  • Configuration tables -- model definitions, spend budgets, rate limit settings

Exploitation Timeline

Date/TimeEvent
April 19, 2026Patch released (LiteLLM v1.83.7-stable)
April 20, 2026 21:14 UTCMaintainer-side repository advisory published
April 24, 2026 16:17 UTCAdvisory indexed in GitHub global advisory database (defender feeds surface here)
April 26, 2026 16:24 UTCFirst exploitation attempt observed by Sysdig TRT -- 36 hours 7 minutes after indexing
May 08, 2026CISA 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.


Impact Assessment

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.


Affected Versions

StatusVersions
Vulnerable>= 1.81.16 and < 1.83.7
Patched>= 1.83.7-stable

Detection Opportunities

Network/WAF Level

Look for HTTP requests to LiteLLM endpoints containing SQL metacharacters in the Authorization header:

root@kitploit:~
Authorization: Bearer ' OR 1=1--
Authorization: Bearer '; SELECT * FROM LiteLLM_VerificationToken--
Authorization: Bearer ' UNION SELECT--

Indicators to hunt for in proxy logs:

  • Requests to /chat/completions, /embeddings, or other API routes with malformed bearer tokens
  • Bearer values containing single quotes, double dashes, UNION, SELECT, or other SQL keywords
  • High volume of 4xx responses from the proxy with varied Authorization headers from the same source IP

Database Level

  • Unexpected SELECT queries against LiteLLM_VerificationToken with unusual WHERE clauses
  • Access to credential or configuration tables outside normal application query patterns
  • New or modified API key records not created through the admin UI

MITRE ATT&CK

TechniqueIDDescription
Exploit Public-Facing ApplicationT1190SQL injection against internet-accessible LiteLLM proxy
Credentials from Password StoresT1555Extraction of API keys and cloud credentials from proxy database
Valid Accounts: Cloud AccountsT1078.004Use of stolen cloud provider credentials post-exploitation

Recommended Actions

Immediate (if running affected versions):

  1. Upgrade to LiteLLM >= 1.83.7-stable immediately
  2. If internet-facing during the vulnerable window (April 19 - patch deployment), treat as a potential compromise -- do not assume unpatched = uncompromised
  3. Rotate all API keys and cloud credentials stored in the LiteLLM database
  4. Review proxy access logs for SQL injection indicators in Authorization headers

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


Analyst Notes

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.


References

  • CISA KEV -- CVE-2026-42208
  • Sysdig TRT Analysis
  • The Hacker News Coverage
  • Security Affairs
  • GHSA-r75f-5x8p-qvmc
  • MITRE ATT&CK T1190
  • MITRE ATT&CK T1555
Scarica lo strumento