ZeroHour
Story · 4 sources · 4 articlesfirst updated ()

LiteLLM Gateway Flaws Chain From MCP Auth Bypass (CVE-2026-59822, CISA KEV) to Root RCE and Cloud Credential Theft

What's new: New GBHackers report (2026-09-10T12:56:58Z) adds: the MCP bypass accepts a single-character Bearer token via an OAuth2 fallback in versions before 1.84.0; CVE-2026-59821's guardrails flaw is explicitly bounded to versions before 1.82.0-stable; the 191 unauthenticated gateways are quantified at 6.2%; CVE-2026-35029 is reported to permit config changes leading to RCE and admin takeover; the…
Merged summary · glm-5.3-flash · rewritten as coverage arrives

Wiz disclosed chainable flaws in the open-source LiteLLM AI gateway: an MCP auth bypass (CVE-2026-59822, CVSS 8.8) added to CISA KEV on September 2 and exploited against Wiz honeypots since July 7, chainable with post-auth root RCE via Custom Code Guardrails…

Wiz Research (presented at DEF CON 34) reported a chainable flaw set in the open-source LiteLLM AI gateway, based on a Shodan scan that The Hacker News dates to February and that found 3,074 internet-facing gateways. Sources frame the misconfiguration rate differently: Wiz, Cyber Security News, and GBHackers describe 294 gateways (9.6%) as accepting the setup guide's default master key sk-1234 or requiring no authentication, while The Hacker News counts 294 of 3,074 accepting sk-1234 with a separate 191 that set no master key and would accept any credential; GBHackers puts that 191 at 6.2%. On such misconfigured instances, post-auth attacks become effectively pre-auth. Because the master key doubles as the authentication switch, gateways started without one before 1.82.0-stable granted every request full admin rights, exposing stored provider API keys, prompts, and MCP-connected tools. CVE-2026-59822 (CVSS 8.8) lets the MCP endpoint accept arbitrary Bearer tokens and create fully authenticated sessions; GBHackers adds that a single-character token is accepted via an OAuth2 fallback in versions before 1.84.0. The bypass was added to CISA's Known Exploited Vulnerabilities catalog on September 2 and has been exploited in the wild against Wiz honeypots since July 7. CVE-2026-59821 enables post-auth root-level code execution in the gateway container through the Custom Code Guardrails feature via exec(compile(...)), bounded to versions before 1.82.0-stable per GBHackers; its severity is disputed: Wiz demonstrates root-level RCE, while the LiteLLM vendor advisory rates it CVSS 2.1 Low. Separately, pass-through endpoints lack URL/SSRF validation against private and cloud metadata addresses, letting an admin-key holder reach services such as EC2 IMDS and retrieve temporary AWS IAM credentials; The Hacker News reports no real-world abuse of this vector. Cyber Security News adds that CVE-2026-35029 tracks missing administrator checks on pass-through endpoint configuration in versions before 1.83.0, which GBHackers says permits config changes leading to RCE and admin takeover. Related in-the-wild activity includes CVE-2026-42271, used to install a cryptominer and chainable with the Starlette flaw CVE-2026-48710; The Hacker News also lists CVE-2026-40217 among related LiteLLM CVEs without further detail. Fixes shipped in LiteLLM 1.82.0 (guardrail hardening), 1.83.0 (pass-through admin checks, per Cyber Security News's CVE-2026-35029 note), and 1.84.0 (MCP bypass); Wiz…

  • CVE-2026-59822 (CVSS 8.8): LiteLLM MCP endpoint accepts arbitrary Bearer tokens and creates fully authenticated sessions; GBHackers reports a single-character token is accepted via an OAuth2 fallback in versions before 1.84.0.
  • CVE-2026-59822 added to CISA's Known Exploited Vulnerabilities catalog on September 2; exploited in the wild against Wiz honeypots since July 7.
  • CVE-2026-59821: post-auth root-level code execution in the gateway container via unsanitized Custom Code Guardrails registration through exec(compile(...)); versions before 1.82.0-stable per GBHackers.
  • CVE-2026-59821 severity is disputed: Wiz demonstrates root-level RCE, while the LiteLLM vendor advisory rates it CVSS 2.1 Low (The Hacker News).
  • Scan found 3,074 internet-facing gateways (Shodan, dated February by The Hacker News). Misconfiguration framing differs: Wiz/Cyber Security News/GBHackers say 294 (9.6%) accepted sk-1234 or required no authentication; The Hacker News…
  • Gateways started without a master key before 1.82.0-stable granted every request full admin rights, exposing stored provider API keys, prompts, and MCP-connected tools.
  • Pass-through endpoints lack URL/SSRF validation; an admin-key holder can reach cloud metadata (e.g., EC2 IMDS) and retrieve temporary AWS IAM credentials; no real-world abuse of this vector reported (The Hacker News).
  • CVE-2026-35029: missing administrator checks on pass-through endpoint configuration before 1.83.0; GBHackers says it permits config changes leading to RCE and admin takeover.

Coverage timeline

  1. · 6d ago
    Wiz Blog· 84
    Off Guard: Breaking LiteLLM from authentication bypass to cloud compromise

    Wiz found LiteLLM auth bypass (CVE-2026-59822) and post-auth RCE (CVE-2026-59821) chainable to cloud compromise; the bypass is in CISA KEV with in-the-wild exploitation.

  2. · 5d ago
    The Hacker News· 58
    Nearly 1 in 10 Exposed LiteLLM Gateways Accepted the Example "sk-1234" Admin Key

    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.

  3. · 5d ago
    Cyber Security News· 70
    LiteLLM Flaws Let Attackers Execute Code as Root and Steal Cloud Credentials

    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.

  4. · 5d ago
    GBHackers· 74
    Hackers Can Turn Vulnerable LiteLLM AI Gateways Into Root Access and Cloud Credential Theft

    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 →

CVEVulnerabilityCVSSEPSSFlagsAffectedExposurePublished
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.725%
  • LiteLLM proxy server (AI Gateway) all versions prior to 1.83.0; fixed in v1.83.0
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.815% PoC
  • litellm litellm
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.784% KEV
  • BerriAI LiteLLM (proxy server / AI Gateway) 1.74.2 up to but not including 1.83.7 (fixed in 1.83.7)
  • Red Hat OpenShift AI
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.536% KEV PoC ×3
  • Kludex (Encode) Starlette All versions prior to 1.0.1
  • Red Hat AI Inference Server
  • Red Hat Ansible Automation Platform
  • +5 more
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%
  • litellm litellm
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
  • BerriAI LiteLLM all versions prior to 1.84.0 (fixed in 1.84.0)
moderateon the order of thousands of internet-exposed LiteLLM gateway instances (estimate; no authoritative total)