(Pwn2Own) LM Studio MCP Tool Schema Code Injection Remote Code Execution Vulnerability
Vulnerability Details
This vulnerability allows remote attackers to execute arbitrary code on affected installations of LM Studio. Authentication is not required to exploit this vulnerability.
The specific flaw exists within the processing of MCP tool schemas. The issue results from the lack of proper validation of a user-supplied schema before using it to generate code. An attacker can leverage this vulnerability to execute code in the context of the service account.
Additional Details
Fixed in LM Studio 0.4.16
https://lmstudio.ai/changelog/lmstudio/lmstudio-v0.4.16
Disclosure Timeline
- 2026-06-02 - Vulnerability reported to vendor
- 2026-11-24 - Coordinated public release of advisory
- 2026-11-24 - Advisory Updated
Credit
Nikolaos Mourousias (@deltaclock), Caue Obici (@caueobici) and Bruno Halltari (@BrunoModificato) of OtterSec