CVE-2026-136535 in LiteLLMinfo

Summary

by MITRE • 11/24/2026

LiteLLM MCP Command Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of LiteLLM. Authentication is required to exploit this vulnerability.

The specific flaw exists within the handling of MCP stdio configurations. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the service account. Was ZDI-CAN-31815.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 11/24/2026

The identified vulnerability represents a critical security flaw within LiteLLM, specifically affecting its handling of Model Context Protocol (MCP) standard input and output configurations. This issue is classified as a command injection vulnerability that leads to remote code execution under specific conditions. The root cause lies in the insufficient validation and sanitization of user-supplied strings when they are processed for MCP stdio configuration settings. When an authenticated attacker provides maliciously crafted input, the application fails to properly escape or filter special characters before passing these values to underlying system calls. This lack of rigorous input validation allows the injection of arbitrary shell commands that are then executed by the operating system on behalf of the service account running LiteLLM.

From a technical perspective, this flaw aligns with CWE-78, which describes Improper Neutralization of Special Elements used in an OS Command commonly known as OS Command Injection. The vulnerability exploits the direct concatenation or interpolation of untrusted data into command strings without adequate sanitization mechanisms such as parameterized commands or strict allow-listing of permitted inputs. Because the execution context is tied to the service account, the impact extends beyond simple information disclosure. An attacker who successfully exploits this flaw gains the ability to execute arbitrary code with the same privileges as the LiteLLM process. This can lead to complete compromise of the underlying host system, including access to sensitive data, modification of application logic, or use of the compromised server as a pivot point for further attacks within the network infrastructure.

The operational impact is severe due to the requirement for authentication prior to exploitation. While this limits the attack surface compared to unauthenticated remote code execution vulnerabilities, it does not mitigate the severity once an attacker obtains valid credentials through phishing, credential stuffing, or other means. The ability to execute commands as the service account allows attackers to potentially escalate privileges if the service account has elevated permissions on the host system. Furthermore, this vulnerability can be leveraged in conjunction with ATT&CK technique T1059 Command and Scripting Interpreter, enabling adversaries to automate post-exploitation activities such as data exfiltration, lateral movement, or persistence establishment by executing scripts via standard interpreters available on the target operating system.

Mitigation strategies should focus primarily on updating LiteLLM to a patched version that addresses this specific command injection flaw in the MCP stdio handling logic. In addition to software updates, administrators must enforce strict input validation practices within their own integrations and configurations. This includes implementing allow-lists for permitted configuration values rather than relying solely on blacklist approaches which are prone to bypasses. Principle of least privilege should be applied by ensuring that the LiteLLM service account operates with minimal necessary permissions, thereby limiting the potential blast radius in the event of a successful exploitation attempt. Regular security audits and static code analysis tools configured to detect command injection patterns can also help identify similar vulnerabilities before they are deployed into production environments.

Responsible

Zdi

Reservation

11/24/2026

Disclosure

11/24/2026

Moderation

accepted

CPE

ready

EPSS

0.01534

KEV

no

Activities

very low

Sources

Do you need the next level of professionalism?

Upgrade your account now!