Skip to content
RCE Advisory Advanced CVE-2026-133995

(Pwn2Own) LM Studio MCP Tool Schema Code Injection Remote Code Execution Vulnerability

LM Studio did not properly validate user-supplied MCP tool schemas before using them to generate code, allowing an unauthenticated remote attacker to execute arbitrary code as the service account.

Nikolaos Mourousias Follow

Originally disclosed on Zero Day Initiative

Critical 9.8 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of LM Studio. Authentication is not required to exploit this vulnerability.

Nikolaos Mourousias (@deltaclock), Caue Obici (@caueobici) and Bruno Halltari (@BrunoModificato) of OtterSec, on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

An unauthenticated remote attacker could execute arbitrary code in the context of the service account.

What the attacker needed

None

The fix

It was fixed in LM Studio 0.4.16.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

LM Studio is a program that runs AI models on your computer. It can use 'tools' described by small configuration files called schemas. The program turned those descriptions into code without checking them first, so someone could sneak in harmful instructions and run their own code on the machine.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.