Nearly 1 in 10 Exposed LiteLLM Gateways Accepted the Default 'sk-1234' Admin Key as MCP Auth Bypass Lands in CISA KEV
Wiz Research's Shodan scan found 3,074 internet-facing LiteLLM gateways, of which 294 (9.6%) accepted the documented default admin key 'sk-1234' and 191 required no authentication, exposing provider API keys and cloud IAM credentials. Key flaws include a…
Wiz Research disclosed weaknesses in the open-source LiteLLM AI gateway after a February Shodan scan identified 3,074 internet-facing instances. The scan found 294 gateways (9.6%) accepting the documented default admin key 'sk-1234' and 191 (6.2%) with no master key set and accepting any credential; sources differ on whether the 294 figure includes the unauthenticated gateways (The Hacker News and GBHackers count them separately, while Cyber Security News combines them as '294 accepting sk-1234 or lacking authentication'). The master key doubles as the authentication switch, and before 1.82.0-stable a gateway started without one granted every request full admin rights. Three tracked flaws enable takeover: CVE-2026-59822 (CVSS 8.8) is an MCP authentication bypass in versions before 1.84.0 in which a minimal or single-character Bearer token establishes a valid session via an OAuth2 fallback; it was added to CISA's Known Exploited Vulnerabilities catalog on September 2 and has been observed against Wiz honeypots since July 7. CVE-2026-59821 lets authenticated administrators execute Python code as root via unsanitized Custom Code Guardrails registration before 1.82.0-stable; its severity is disputed, as Wiz demonstrates root-level code execution while LiteLLM's advisory rates it CVSS 2.1 (Low). CVE-2026-35029 covers missing administrator checks on pass-through endpoint configuration before 1.83.0 and, per GBHackers, permits config changes leading to RCE and admin takeover. With admin access, pass-through endpoints that lack SSRF checks against private and cloud metadata addresses can be abused to reach the EC2 IMDS and steal temporary AWS IAM credentials; no real-world abuse of this path was reported. Exposed gateways can leak stored provider API keys, prompts, and MCP-connected tools. Separately, CVE-2026-42271 was used in the wild to install a cryptominer and is chainable with a Starlette flaw, CVE-2026-48710. Fixes shipped in 1.82.0 (guardrail hardening), 1.83.0 (config checks), and 1.84.0 (MCP bypass); operators should upgrade to 1.84.0 or later, replace default keys with strong unique values, restrict outbound traffic, rotate provider keys, and review logs. Reported indicators include the /mcp/ and /guardrails endpoints and the minimal Bearer token.
- Wiz Research's February Shodan scan identified 3,074 internet-facing LiteLLM gateways.
- 294 of the 3,074 gateways (9.6%, nearly 1 in 10) accepted the documented default admin key 'sk-1234'; 191 (6.2%) had no master key set and would accept any credential. Sources disagree on composition: The Hacker News and GBHackers report…
- The master key doubles as the authentication switch; before 1.82.0-stable, a gateway started without a master key granted every request full admin rights.
- CVE-2026-59822 (CVSS 8.8): MCP authentication bypass in versions before 1.84.0 where a minimal or single-character Bearer token establishes a valid session via an OAuth2 fallback. Added to CISA's Known Exploited Vulnerabilities catalog on…
- CVE-2026-59821: authenticated administrators can execute Python code as root via unsanitized Custom Code Guardrails registration before 1.82.0-stable. Severity is disputed: Wiz demonstrates root-level code execution, while LiteLLM's…
- CVE-2026-35029: missing administrator checks on pass-through endpoint configuration before version 1.83.0; GBHackers reports it permits config changes leading to RCE and admin takeover.
- Pass-through endpoints lack SSRF checks against private and cloud metadata addresses, letting an admin-key holder reach the EC2 IMDS and retrieve temporary AWS IAM credentials; no real-world abuse of this issue was reported.
- Exposed instances can leak stored provider API keys, prompts, and MCP-connected tools.
Coverage timelineoldest first · each row is one article
- · 6d agoNearly 1 in 10 Exposed LiteLLM Gateways Accepted the Example "sk-1234" Admin Key
The Hacker News· 58
Wiz found 294 of 3,074 internet-facing LiteLLM gateways accepted the documented default admin key sk-1234, exposing provider API keys and cloud IAM credentials.
- · 6d agoLiteLLM Flaws Let Attackers Execute Code as Root and Steal Cloud Credentials
Cyber Security News· 70
Wiz disclosed LiteLLM flaws including CVE-2026-59822 MCP auth bypass, now in CISA KEV, enabling root RCE and AWS credential theft from exposed gateways.
- · 6d agoHackers Can Turn Vulnerable LiteLLM AI Gateways Into Root Access and Cloud Credential Theft
GBHackers· 74
Wiz found multiple LiteLLM AI gateway flaws, including a CVE-2026-59822 MCP auth bypass added to CISA KEV, enabling root code execution and cloud credential theft.
Vulnerabilities in this storyAll →
| CVE | Vulnerability | CVSS | EPSS | Flags | Affected | Exposure | Published |
|---|---|---|---|---|---|---|---|
| CVE-2026-35029 | Broken Access Control in LiteLLM AI Gateway Enables Authenticated RCE CVE-2026-35029 is a broken access control flaw (CWE-863, CWE-425) in LiteLLM, an open-source proxy server (AI Gateway) for calling LLM APIs, in which the /config/update endpoint fails to enforce admin-role authorization in versions prior to 1.83.0. Any user who is already authenticated to the proxy can call this network-accessible endpoint without admin rights and modify the proxy configuration and environment variables. Through this, an attacker can achieve remote code execution by registering pass-through endpoint handlers that point to attacker-controlled Python code, read arbitrary server files by setting UI_LOGO_PATH and fetching the file via /get_image, and take over other privileged accounts by overwriting the UI_USERNAME and UI_PASSWORD environment variables; related security coverage also highlights that vulnerable LiteLLM gateways can be turned into root-level code execution and cloud credential theft. Any organization running a LiteLLM proxy older than v1.83.0 is affected, particularly deployments where non-admin users hold authenticated accounts. No public proof-of-concept or confirmed in-the-wild exploitation is known and the flaw is not in CISA KEV, but EPSS assigns a 25.1% probability of exploitation within 30 days (98th percentile), signaling elevated near-term risk. Do: Upgrade to LiteLLM v1.83.0 or later. Until patched, restrict network access to /config/update so only administrators can reach it, and limit how many non-admin accounts hold API/UI credentials on the proxy. Audit configuration and environment variables for tampering (especially UI_USERNAME, UI_PASSWORD, UI_LOGO_PATH, and registered pass-through handlers), and rotate cloud credentials stored in the gateway's environment if compromise is suspected. | 8.7 | 25% |
| moderateon the order of thousands of self-hosted gateway deployments (estimate; no published install counts) | ||
| CVE-2026-40217 | LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI. LiteLLM through 2026-04-08 allows remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI. NVD description · AI analysis pending | 8.8 | 15% | PoC |
| — | |
| CVE-2026-42271 | Command Injection in BerriAI LiteLLM AI Gateway Exploited in the Wild CVE-2026-42271 is a command injection (CWE-77/CWE-78) in BerriAI LiteLLM's proxy server, a widely used AI gateway for calling LLM APIs. Two MCP preview endpoints (POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list) accept a full stdio server configuration, including command, args, and env fields, and spawn the supplied command as a subprocess on the proxy host; the endpoints are gated only by any valid proxy API key with no role check, so even low-privilege internal-user keys can trigger it. An attacker with any authenticated key gains arbitrary command execution with the privileges of the proxy process, and reporting indicates attackers are chaining the flaw into broader takeover of AI gateway servers, including reverse shells and crypto miners, in some cases via weak or default keys such as the example 'sk-1234' admin key. Any organization running LiteLLM versions 1.74.2 through before 1.83.7, including LiteLLM distributed with Red Hat OpenShift AI, is affected. The flaw was added to CISA's Known Exploited Vulnerabilities catalog on 2026-06-08 and is under active attack, with a very high EPSS of 83.6% for exploitation within 30 days. Do: Upgrade LiteLLM to version 1.83.7 or later immediately (federal agencies must act per CISA KEV/BOD 22-01), and apply Red Hat's advisory updates if running OpenShift AI. Until patched, restrict or rotate proxy API keys — especially low-privilege internal-user and any default/example keys such as 'sk-1234' — and limit network access to the /mcp-rest/test/* endpoints. Review proxy hosts for indicators of compromise such as unexpected spawned subprocesses, reverse shells, or crypto miners, and rotate credentials that may have been captured via compromised environments. | 8.7 | 84% | KEV |
| moderatelikely on the order of thousands of internet-exposed LiteLLM gateway deployments (est. 1k-10k exposed instances), plus private/internal installs of unknown… | |
| CVE-2026-48710 | HTTP Request Smuggling in Kludex Starlette (CVE-2026-48710) Kludex Starlette prior to version 1.0.1 did not validate the HTTP Host request header before using it to reconstruct request.url, an inconsistency classified as HTTP request/response smuggling (CWE-444). Because routing operates on the raw ASGI scope path while request.url is rebuilt from the unvalidated Host header, an attacker can send a malformed Host header so that request.url.path differs from the path the router actually processed. Any middleware or endpoint that enforces security restrictions based on request.url rather than the raw scope path can then be tricked into approving requests that should have been blocked, bypassing those controls. All Starlette deployments below 1.0.1 are affected, both direct users and downstream products that bundle the library, including Red Hat offerings such as Ansible Automation Platform, OpenShift AI, OpenShift Lightspeed, Satellite, AI Inference Server, Migration Toolkit for Applications, and Enterprise Linux AI. CISA added the flaw to the Known Exploited Vulnerabilities catalog on 2026-09-02, confirming active exploitation; related reporting describes attackers deploying reverse shells and crypto miners, and EPSS ranks it in the 98th percentile with a 36.3% probability of exploitation within 30 days. Do: Upgrade Starlette to 1.0.1 or later, which validates the Host header against RFC 9112/RFC 3986 grammar and falls back to scope['server'] for malformed values, and apply the corresponding Red Hat updates for each bundled product listed above. Until patched, review middleware and endpoints that enforce security decisions from request.url and validate or pin the Host header at your reverse proxy or load balancer. As a KEV entry, federal agencies must patch per BOD 26-04 timelines based on each asset's internet exposure, and operators of internet-facing AI infrastructure should verify their Starlette/FastAPI dependency versions. | 6.5 | 36% | KEV PoC ×3 |
| mass>1M library deployments (Starlette is the core ASGI dependency beneath FastAPI and much of the Python AI-serving stack, with hundreds of millions of monthly… | |
| CVE-2026-59821 | LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. Prior to 1.82.0-stable, LiteLLM's Custom Code Guardrails production create and update paths did not apply the same sandboxing and validation used by the test endpoint, allowing a privileged user with access to create or update guardrails to submit custom Python code that executed in the LiteLLM proxy environment and could expose secrets available to the process. This issue is fixed in version 1.82.0-stable. NVD description · AI analysis pending | 2.1 | <1% |
| — | ||
| CVE-2026-59822 | Unauthenticated MCP Endpoint Authentication Bypass in BerriAI LiteLLM BerriAI LiteLLM, a widely used self-hosted AI gateway and proxy server for calling LLM APIs, fails to properly authenticate requests to its MCP Streamable HTTP endpoint in versions prior to 1.84.0. An unauthenticated attacker can send a fabricated Authorization header that triggers an OAuth2 passthrough fallback, which replaces failed LiteLLM key validation with an empty UserAPIKeyAuth() object and lets the request reach MCP tooling without any valid LiteLLM key. Successful exploitation grants unauthenticated access to the gateway's MCP tooling with high confidentiality impact per the CVSS 4.0 score of 8.8, and public reporting describes attackers chaining LiteLLM weaknesses from authentication bypass to root code execution and cloud credential theft. Any organization running LiteLLM before 1.84.0 is affected, particularly gateways exposed to the internet. The flaw is confirmed exploited in the wild: CISA added it to the Known Exploited Vulnerabilities catalog on 2026-09-02, while EPSS currently estimates a 0.9% probability of exploitation in the next 30 days. Do: Upgrade LiteLLM to version 1.84.0 or later immediately, in line with the CISA KEV required action and BOD 26-04 guidance for internet-exposed assets. Audit whether the MCP endpoint is reachable from the internet and check for signs of exploitation, including unexpected MCP tool calls, use of fabricated Authorization headers, and use of default or example admin keys such as 'sk-1234'. Until patched, restrict access to the MCP endpoint and review cloud credentials accessible from the gateway host for signs of theft or root-level activity. | 8.8 | <1% | KEV |
| moderateon the order of thousands of internet-exposed LiteLLM gateway instances (estimate; no authoritative total) |