PortGate

Advisories · AI & LLMs

CVE-2026-42208 Critical CVSS 9.3 Actively exploited

LiteLLM Proxy pre-authentication SQL injection

Disclosed 20 Apr 2026 · Last reviewed 2 Dec 2026

The proxy built an SQL query from the API key a caller sent. Attackers exploited it within about 36 hours to read and change the proxy database, including the provider keys it manages. CISA listed it on 8 May 2026.

What happened

A database query in the API key check mixed the caller-supplied key into the query text instead of passing it as a parameter. The error-logging path made it reachable without a valid key.

Affected and patched versions

Affected
LiteLLM 1.81.16 through 1.83.6.
Patched
LiteLLM 1.83.7 and later. LiteLLM recommends v1.83.10-stable.

How to check your server

Check

pip show litellm 2>/dev/null | grep -i '^version'
docker ps --format '{{.Image}}' | grep -i litellm

How to fix and harden

  1. Check the version or image tag.
  2. Upgrade to 1.83.7 or later.
  3. If you cannot upgrade today, set disable_error_logs: true under general_settings, which removes the unauthenticated path.
  4. Rotate the master key, virtual keys and every upstream provider key the proxy stores.

Fix

pip install -U 'litellm>=1.83.7'

Sources

Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON