ZeroHour
Story · 2 sources · 2 articlesfirst updated ()2

LiteLLM AI Gateway Flaws Enable Root Code Execution and Cloud Credential Theft; MCP Auth Bypass Added to CISA KEV

What's new: CVE-2026-59822 added to CISA's Known Exploited Vulnerabilities catalog on September 2 after being observed exploited in the wild via Wiz honeypots. Vendor fixes shipped: guardrail hardening in LiteLLM 1.82.0 and the MCP bypass fix in 1.84.0, with users advised to upgrade to 1.84.0 or later. New exposure data from a scan of 3,074 internet-facing instances: 294 (9.6%) accept the default sk-1234…
Merged summary · glm-5.3-flash · rewritten as coverage arrives

Wiz disclosed three LiteLLM gateway flaws — CVE-2026-59821 root code execution via Custom Code Guardrails, CVE-2026-59822 MCP authentication bypass (observed exploited in the wild and added to CISA KEV on September 2), and CVE-2026-35029 pass-through…

Wiz researchers disclosed multiple weaknesses in the open-source LiteLLM AI gateway. CVE-2026-59821 lets authenticated administrators execute Python code as root inside the gateway container via unsanitized Custom Code Guardrails registration (versions before 1.82.0-stable; guardrail hardening shipped in 1.82.0). CVE-2026-59822 is an MCP authentication bypass in which a meaningless single-character Bearer token establishes a valid MCP session through an OAuth2 fallback in versions before 1.84.0 (fixed in 1.84.0); Wiz observed exploitation in the wild via honeypots, and the flaw was added to CISA's Known Exploited Vulnerabilities catalog on September 2. CVE-2026-35029 covers missing administrator checks on pass-through endpoint configuration before 1.83.0, permitting config changes that lead to RCE and admin takeover. A scan of 3,074 internet-facing LiteLLM instances found 294 (9.6%) accepting the default master key sk-1234; GBHackers additionally reports 191 (6.2%) requiring no authentication, while Cyber Security News describes the 294 (9.6%) figure as instances accepting sk-1234 or lacking authentication — the sources categorize these counts differently. With admin access, attackers can abuse pass-through forwarding to reach the cloud metadata service (EC2 IMDS) and obtain temporary AWS IAM credentials; exposed instances can also leak provider API keys. Recommended mitigations: upgrade to 1.84.0 or later, replace the sk-1234 default key with strong unique keys, restrict outbound traffic, rotate provider keys, and review logs. Indicators include the /mcp/ and /guardrails endpoints and the minimal Bearer token.

  • CVE-2026-59821: authenticated administrators can execute Python code as root in the gateway container via unsanitized Custom Code Guardrails registration; affects versions before 1.82.0-stable; guardrail hardening shipped in 1.82.0.
  • CVE-2026-59822: MCP authentication bypass — a meaningless single-character Bearer token establishes a valid MCP session via an OAuth2 fallback; affects versions before 1.84.0; fixed in 1.84.0.
  • CVE-2026-59822 was observed exploited in the wild through Wiz honeypots and added to CISA's Known Exploited Vulnerabilities catalog on September 2.
  • CVE-2026-35029: missing administrator checks on pass-through endpoint configuration before version 1.83.0; permits config changes leading to RCE and admin takeover.
  • Scan of 3,074 internet-facing instances: 294 (9.6%) accept the default master key sk-1234; GBHackers reports 191 (6.2%) require no authentication, while Cyber Security News groups the 294 (9.6%) as accepting sk-1234 or lacking…
  • Admin access plus pass-through endpoints can reach the cloud metadata service (EC2 IMDS) to steal temporary AWS IAM credentials; exposed instances can also leak provider API keys.
  • Recommended mitigations: upgrade to 1.84.0 or later, replace the sk-1234 default key with strong unique keys, restrict outbound traffic, rotate provider keys, and review logs.
  • Indicators include the /mcp/ and /guardrails endpoints, the minimal Bearer token, and affected source files.

Coverage timeline

  1. · 6d 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.

  2. · 6d 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-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)