{"id":"CVE-2026-42208","kind":"vulnerability","aliases":["CVE-2026-42208"],"related":[],"title":"LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format","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.","summary":"Pre-authentication SQL injection in LiteLLM Proxy's API key verification: the Authorization: Bearer value is concatenated into a SELECT on LiteLLM_VerificationToken. Any client that can reach the proxy (e.g. POST /chat/completions) can read the Postgres database, including virtual keys, the master key, stored provider credentials and proxy environment config. Exploitation in the wild was observed by Sysdig on Apr 26, 2026, and CISA added it to KEV on May 8.","severity":"critical","cvss":9.8,"epss":null,"exploited":true,"exploited_at":"2026-05-08T00:00:00+00:00","products":[{"name":"BerriAI LiteLLM","fixed":[],"affected":"","ecosystem":"vendor"},{"name":"litellm","fixed":["1.83.7"],"affected":">= 1.81.16, < 1.83.7","ecosystem":"pypi"},{"name":"litellm","fixed":["1.83.7"],"affected":">= 1.81.16, < 1.83.7","ecosystem":"vendor"}],"ecosystems":["pypi","vendor"],"tags":["ai-tooling","exploited","litellm","llm-gateway","pre-auth","python","self-hosted","sql-injection"],"not_affected_if":["managed-hosting","patched-1.83.7+"],"how_to_check":"Run 'pip show litellm' or check the image tag: versions 1.81.16 through 1.83.6 are vulnerable. Applies only if the proxy uses a Postgres database. Review Postgres query history with BerriAI's helper query (https://gist.github.com/ishaan-berri/6f31e56e878338eb4c01990bd08378ab). Grep access logs for Authorization headers containing a single quote, UNION SELECT, or litellm_verificationtoken/litellm_credentials, especially user-agent Python/3.12 aiohttp/3.9.1 from 65.111.27.132 and 65.111.25.67.","fix":"Upgrade LiteLLM to v1.83.10-stable (recommended), or at minimum v1.83.7. If the proxy was reachable from an untrusted network on an affected version, rotate the master key, all virtual keys and every provider credential stored in LiteLLM (OpenAI, Anthropic, Bedrock etc.), and the DB password. No config-only workaround was stated by the vendor; restricting network access to the proxy limits exposure.","status":"open","published_at":"2026-05-08T00:00:00+00:00","first_seen_at":"2026-10-23T19:11:51+00:00","triaged_at":"2026-10-23T20:38:36+00:00","updated_at":"2026-10-23T23:44:51+00:00","category":"ai-tooling","confidence":0.85,"triage":{"at":"2026-10-23T20:38:36Z","model":"claude-haiku-5-5","output":{"fix":"Apply the vendor mitigation per BerriAI guidance; the affected and fixed versions are not stated in the sources. If no mitigation is available, discontinue use of the product per CISA guidance.","reach":"unknown","summary":"LiteLLM, an LLM proxy and gateway, has a SQL injection flaw that lets an attacker read and possibly modify the proxy's database. Because the proxy stores the credentials it manages, an attacker can gain unauthorized access to those credentials and the proxy itself.","category":"ai-tooling","who_cares":["litellm","llm-gateway","self-hosted","python"],"confidence":0.6,"needs_auth":"unknown","worst_case":"Attacker reads proxy database, steals stored provider credentials, and modifies data.","analyst_note":"Find affected and fixed LiteLLM versions, the vendor mitigation, and the injectable endpoint from the BerriAI advisory linked from the CISA KEV entry.","how_to_check":"unknown","needs_analyst":true,"not_affected_if":["managed-hosting"],"user_interaction":"no","needs_special_setup":"unknown","severity_if_unknown":"high"},"cost_usd":0.000459,"input_tokens":2556,"output_tokens":407,"severity_before":"unknown"},"analyst_status":"done","analyst_note":"Find affected and fixed LiteLLM versions, the vendor mitigation, and the injectable endpoint from the BerriAI advisory linked from the CISA KEV entry.","search":"'-2026':18A,21A '-42208':19A,22A '/chat/completions':78B,187C '1.81.16':136C '1.83.7':140C,236C '2026':108B '26':107B '8':117B 'abl':213C 'access':220C 'add':111B 'ai':6A,28B,123C 'ai-tool':27B 'api':11A,54B,128C,147C,182C 'apr':106B 'attack':171C,201C 'auth':37B 'authent':47B 'author':58B,177C 'bearer':59B 'berriai':23A 'call':9A,126C 'caller':153C 'caller-suppli':152C 'check':149C 'cisa':110B 'client':70B 'concaten':62B 'config':96B 'could':172C,202C 'craft':176C 'credenti':92B,226C 'cve':17A,20A 'data':204C 'databas':83B,142C,209C 'e.g':76B 'environ':95B 'error':197C 'error-handl':196C 'exampl':185C 'exploit':30B,97B 'format':16A,133C 'gateway':7A,34B,124C 'handl':198C 'header':178C 'host':41B 'includ':84B 'inject':44B,49B 'instead':161C 'issu':230C 'kev':114B 'key':55B,86B,89B,148C,155C 'lead':217C 'litellm':1A,24A,25A,26A,31B,51B,67B,118C 'llm':10A,33B,127C,181C 'llm-gateway':32B 'manag':228C 'master':88B 'may':116B,211C 'mix':150C 'modifi':215C 'nativ':15A,132C 'observ':102B 'openai':13A,130C 'paramet':168C 'pass':163C 'patch':233C 'path':199C 'post':77B,186C 'postgr':82B 'pre':36B,46B 'pre-auth':35B 'pre-authent':45B 'provid':91B 'proxi':4A,52B,75B,94B,121C,146C,194C,207C,223C 'python':38B 'queri':143C,159C,191C 'reach':73B,189C 'read':80B,203C 'rout':183C 'select':65B 'self':40B 'self-host':39B 'send':173C 'separ':167C 'server':5A,122C 'special':175C 'sql':43B,48B 'sql-inject':42B 'store':90B 'suppli':154C 'sysdig':104B 'text':160C 'tool':29B 'unauthent':170C 'unauthoris':219C 'use':144C 'valu':60B,156C 'verif':56B 'verificationtoken':68B 'version':135C,139C,235C 'virtual':85B 'wild':100B","nicknames":[],"mitigations":[],"who_affected":null,"tier":null,"verified":{},"analyst_revisit_at":null,"first_public_at":"2026-05-08T00:00:00+00:00","kev":{"dateAdded":"2026-05-08","dueDate":"2026-05-11","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","knownRansomwareCampaignUse":"Unknown"},"cvss_vector":"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:X/V:X/RE:X/U:X","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"kev","external_id":"CVE-2026-42208","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2026-42208","severity":null,"published_at":"2026-05-08T00:00:00+00:00","modified_at":null,"first_seen_at":"2026-10-23T19:11:51+00:00","fetched_at":"2026-10-25T12:39:21+00:00","note":null},{"source":"analyst","external_id":"CVE-2026-42208:25","url":null,"severity":null,"published_at":"2026-10-23T20:45:51+00:00","modified_at":"2026-10-23T20:45:51+00:00","first_seen_at":"2026-10-23T20:45:51+00:00","fetched_at":"2026-10-23T20:45:51+00:00","note":"BerriAI blog (GHSA-r75f-5x8p-qvmc) gives affected v1.81.16-v1.83.6, fixed v1.83.7+, recommends v1.83.10-stable; Sysdig confirms pre-auth SQLi in the Authorization: Bearer key check and in-the-wild attempts from Apr 26. No public PoC link read; Sysdig lists payload shapes. Advisory page itself not read directly."},{"source":"nvd","external_id":"CVE-2026-42208","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42208","severity":null,"published_at":"2026-05-08T04:16:19+00:00","modified_at":"2026-07-15T02:21:28+00:00","first_seen_at":"2026-10-23T23:44:51+00:00","fetched_at":"2026-10-23T23:44:51+00:00","note":null}],"documents":[{"id":866,"url":"https://docs.litellm.ai/blog/cve-2026-42208-litellm-proxy-sql-injection","title":"BerriAI: Security Update CVE-2026-42208 in LiteLLM Proxy","kind":"vendor","source":"analyst","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":null},{"id":867,"url":"https://sysdig.com/blog/cve-2026-42208-targeted-sql-injection-against-litellms-authentication-path-discovered-36-hours-following-vulnerability-disclosure","title":"Sysdig: Targeted SQL injection against LiteLLM auth path","kind":"blog","source":"analyst","text":null,"published_at":null,"relation":"describes","confidence":null,"note":null}],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}