Skip to main content

LiteLLM CVE-2026-42208

| EUVDEUVD-2026-28503 CRITICAL
SQL Injection (CWE-89)
2026-05-08 GitHub_M GHSA-r75f-5x8p-qvmc
9.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify exposed LiteLLM proxy endpoint
  2. Delivery
    Send POST request with SQLi payload in Authorization header
  3. Exploit
    Trigger error handler with malicious query
  4. Execution
    Execute arbitrary SQL against proxy database
  5. Persist
    Extract LLM API credentials
  6. Impact
    Use stolen credentials to access LLM services directly

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special conditions - remote unauthenticated exploitation against default configurations of LiteLLM proxy server versions 1.81.16-1.83.6. Attack requires only network access to any LiteLLM API endpoint (commonly exposed on TCP/8000 or via reverse proxy). Exploitation specifically requires triggering the error-handling code path during API key verification, achieved by sending requests with malformed or invalid Authorization headers that contain SQL injection payloads. The vendor workaround (disable_error_logs: true) explicitly blocks this attack path, limiting exploitation to installations running affected versions without this configuration change. Attack complexity is low (AC:L) as no race conditions, timing dependencies, or user interaction is required.

Impact

CVSS 4.0 score of 9.3 reflects critical severity with maximum exploitability (AV:N/AC:L/PR:N/UI:N) - remote unauthenticated attackers can exploit this without special conditions. However, real-world risk assessment reveals nuanced factors: the vulnerability requires reaching the error-handling path rather than normal authentication flow, which may limit exploitation to specific request patterns. No CISA KEV listing indicates no confirmed widespread exploitation at time of analysis. EPSS data not provided, but SQL injection vulnerabilities typically have moderate-to-high exploitation probability given mature tooling and attacker familiarity. High technical impact (VC:H/VI:H) is confirmed - attackers gain read/write access to credential databases. The attack is automatable once the specific payload pattern is identified. Scope is unchanged (SC:N/SI:N/SA:N), meaning impact is confined to the vulnerable LiteLLM proxy. Priority assessment: HIGH for organizations running affected versions with internet-facing LiteLLM proxies managing production LLM credentials; MEDIUM for internally-facing deployments with network segmentation; all should patch given the trivial exploit path and credential exposure risk.

Exploit ScenarioDerived

An unauthenticated attacker crafts a malicious Authorization header containing SQL injection payloads (e.g., ' OR 1=1-- or UNION-based queries) and sends it to the LiteLLM proxy's /chat/completions endpoint or any other LLM API route. The proxy's error-handling path during API key verification concatenates this header value into a SQL query, allowing the attacker to execute arbitrary database commands. The attacker extracts stored LLM API keys (OpenAI, Anthropic, etc.) from the database, then uses these credentials to directly access LLM services, bypassing the proxy's usage controls and potentially incurring significant costs or accessing sensitive data processed by the LLMs. Publicly available SQL injection tools and techniques make exploitation straightforward once the vulnerable endpoint pattern is identified.

Act Now Prioritize within 24-48h. Why: In CISA KEV with patch available.
Exploited in the wild (CISA KEV) Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 08, 2026

SQL injection in LiteLLM proxy server versions 1.81.16 through 1.83.6 allows unauthenticated remote attackers to read and modify database contents, gaining unauthorized access to managed LLM API credentials. The vulnerability is exploitable via crafted Authorization headers sent to any LLM API route (e.g., POST /chat/completions), triggering the injection through the proxy's error-handling path. Vendor-released patch available in version 1.83.7. No active exploitation confirmed (not in CISA KEV), but the attack vector is simple (CVSS 4.0: AV:N/AC:L/PR:N) and SQL injection POCs are widely known. Discovered by Tencent YunDing Security Lab.

RemediationAI

Upgrade to LiteLLM version 1.83.7 or later, available at https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable (patched release confirmed by vendor). The fix implements parameterized SQL queries for API key verification, eliminating the injection vector. For environments where immediate upgrade is not feasible, apply the vendor-recommended workaround: set disable_error_logs: true under general_settings in the LiteLLM configuration, which removes the error-handling code path through which unauthenticated input reaches the vulnerable query. Note this workaround may reduce operational visibility into authentication failures and should be considered temporary. After upgrading, rotate all LLM API credentials managed by the proxy, as attackers who previously exploited this vulnerability may have exfiltrated credential data. Docker users should verify image signatures using cosign per vendor instructions to ensure authenticity of the patched release.

Affected VersionsENISA

LiteLLM 1.81.16, < 1.83.7

Affected Packages

pypi litellm fix: 1.83.7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

LiteLLM is a proxy server (AI Gateway) that translates requests to various LLM APIs into OpenAI-compatible format. The vulnerability stems from CWE-89 (SQL Injection) where user-supplied API key values from the Authorization header are concatenated directly into SQL query text during API key verification, rather than being passed as parameterized values. The affected component is the proxy's authentication layer, specifically within the error-handling code path. CPE identifier cpe:2.3:a:berriai:litellm indicates this affects the Python package distributed via PyPI. The flaw violates secure coding practices for database interactions, allowing attackers to break out of the intended query logic and execute arbitrary SQL commands against the proxy's backend database, which stores sensitive credential data for managed LLM services.

Know when Litellm gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 9.3 CRITICAL
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
Red Hat 9.8 CRITICAL

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
Added to CISA KEV
May 08, 2026 - 17:18 CISA
Patch available
May 08, 2026 - 05:01 EUVD
CVSS changed
May 08, 2026 - 04:22 NVD
9.3 (CRITICAL)
CVE Published
May 08, 2026 - 03:38 nvd
CRITICAL 9.3

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

LiteLLM proxy server versions 1.81.16-1.83.6 contain a critical SQL injection vulnerability accessible without authentication that allows attackers to read and modify database contents, including stored LLM API credentials. Organizations running affected versions face immediate risk of credential theft and lateral movement to cloud LLM services. This vulnerability requires urgent patching due to its simplicity of exploitation and the sensitivity of data exposed.

Business Impact: Severe
Compensating Controls

Apply vendor patch to version 1.83.7 or later. If immediate patching is not possible: implement network-level access controls to restrict LiteLLM proxy endpoints to trusted internal networks only; monitor all requests to /chat/completions and similar routes for malformed Authorization headers; consider running affected instances in isolated network segments pending upgrade.

Threat Intelligence Overview

Threat Score
4.9/10
Composite threat intelligence
EPSS Score
0.1%
Top 76% exploitable
Threat Intel
2
1 sources
Exploit
POC
Public exploit code exists
Social Media
84
Sightings
Data Quality
9 sources
Confidence: High
EUVD NVD CVE.org CISA KEV EPSS Vulnrichment NEWS GHSA POC (2) Vendor CIRCL 84 sightings GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV Yes
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat Yes
Deciding rule
In CISA KEV with patch available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

116
Low Medium High Critical
KEV: +50
EPSS: 0
CVSS: +46
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Related Vulnerabilities in LiteLLM API Injection and Template Vulnerabilities

View all 3
CVE-2026-59822 HIGH POC
8.8 Jul 08

Authentication bypass in LiteLLM (BerriAI) proxy/AI Gateway before 1.84.0 lets a remote unauthenticated attacker reach M

CVE-2024-2952 CRITICAL POC
9.8 Apr 10

BerriAI/litellm is vulnerable to Server-Side Template Injection (SSTI) via the `/completions` endpoint. Rated critical s

CVE-2026-40217 HIGH POC
8.8 Apr 10

Remote code execution in BerriAI LiteLLM (all versions through 2026-04-08) enables authenticated attackers to execute ar

CVE-2024-4888 HIGH POC
8.1 Jun 06

BerriAI's litellm, in its latest version, is vulnerable to arbitrary file deletion due to improper input validation on t

CVE-2026-93355 HIGH POC
7.6 Sep 28

Authentication bypass in the LiteLLM proxy lets any party who already holds a valid JWT issued by the configured externa

CVE-2025-0330 HIGH POC
7.5 Mar 20

In berriai/litellm version v1.52.1, an issue in proxy_server.py causes the leakage of Langfuse API keys when an error oc

CVE-2024-9606 HIGH POC
7.5 Mar 20

In berriai/litellm before version 1.44.12, the `litellm/litellm_core_utils/litellm_logging.py` file contains a vulnerabi

CVE-2024-6587 HIGH POC
7.5 Sep 13

A Server-Side Request Forgery (SSRF) vulnerability exists in berriai/litellm version 1.38.10. Rated high severity (CVSS

CVE-2024-5225 HIGH POC
7.2 Jun 06

An SQL Injection vulnerability exists in the berriai/litellm repository, specifically within the `/global/spend/logs` en

CVE-2024-4889 HIGH POC
7.2 Jun 06

A code injection vulnerability exists in the berriai/litellm application, version 1.34.6, due to the use of unvalidated

CVE-2024-5710 MEDIUM POC
6.5 Jun 27

berriai/litellm version 1.34.34 is vulnerable to improper access control in its team management functionality. Rated med

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy