LM Studio MCP Tool Vulnerable to Remote Code Execution via Schema Injection
A critical remote code execution vulnerability in LM Studio's MCP Tool, assigned CVE-2026-133995, allows unauthenticated attackers to execute arbitrary code.

The popular AI development tool LM Studio has been found to contain a critical vulnerability that allows for remote code execution (RCE) without requiring any authentication. The flaw, detailed in advisory ZDI-26-1121 by the Zero Day Initiative (ZDI), is present in the tool's MCP (Model Conversion Process) tool and is triggered through a schema code injection technique.
This vulnerability stems from a failure to properly validate user-supplied schemas before they are used in code generation. Attackers can craft malicious schemas that, when processed by the MCP tool, lead to the execution of arbitrary code within the context of the service account running LM Studio. The severity of this flaw is underscored by its critical CVSS score of 9.8.
The MCP tool is a component used within LM Studio for managing and converting AI models. By exploiting this vulnerability, an attacker could potentially gain full control over a system running an affected version of LM Studio, allowing them to install programs, view, alter, or delete data, and create new accounts with full user rights.
The vulnerability was discovered by researchers Nikolaos Mourousias, Caue Obici, and Bruno Halltari from OtterSec. They reported the issue to the vendor on June 2, 2026, and ZDI coordinated a public release of the advisory on November 24, 2026, with an update on the same day.
LM Studio has addressed this critical vulnerability by releasing version 0.4.16. Users are strongly advised to update to this latest version to mitigate the risk of exploitation. The changelog for this version confirms the fix for the RCE vulnerability related to MCP tool schemas.
This discovery highlights the ongoing security challenges associated with the rapidly evolving landscape of AI development tools. As these platforms become more integrated into workflows, the potential impact of vulnerabilities within them grows significantly. Developers and users must remain vigilant about security updates and best practices.
The exploitation of schema processing for code injection is a known attack vector, and this incident serves as a reminder for developers to implement robust input validation and sanitization mechanisms, especially when dealing with user-provided configurations or data that influences code execution.