ZDI-26-1121: (Pwn2Own) LM Studio MCP Tool Schema Code Injection Remote Code Execution Vulnerability
Summary
A Remote Code Execution (RCE) vulnerability resulting from code injection in the processing of Model Context Protocol (MCP) tool schemas has been identified in LM Studio (ZDI-26-1121 / CVE-2026-133995). Discovered during Pwn2Own, this vulnerability carries a CVSS v3 score of 9.8 (Critical). Successful exploitation allows remote attackers to execute arbitrary code on affected installations without requiring authentication.
Affected Products
- LM Studio (versions prior to 0.4.16)
Technical Details
The specific flaw exists within the processing of MCP tool schemas due to a lack of proper validation of user-supplied schemas before utilizing them for code generation. An attacker can exploit this issue to inject and execute arbitrary code within the context of the service account running LM Studio. Exploitation does not require authentication or user interaction (CVSS Vector: AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
Impact
Successful exploitation allows an attacker to execute arbitrary commands on the affected host within the context of the service account running LM Studio, which can lead to complete compromise of the underlying system.
- Confidentiality: High — The attacker can access and exfiltrate sensitive files and system information accessible to the service account.
- Integrity: High — The attacker can modify, overwrite, or create system files and data without authorization.
- Availability: High — The attacker can disrupt services, crash the application, or cause a full denial-of-service condition.
Mitigation & Remediation Recommendations
- Software Update: Immediately update LM Studio to version 0.4.16 or later, which addresses and fixes this vulnerability.
- Network Segmentation: Restrict network access to LM Studio services and ports from public or untrusted networks until patches are applied.
- Least Privilege Enforcement: Ensure LM Studio operates under a service account with minimal system privileges to constrain potential post-exploitation activity.
References
- Zero Day Initiative Advisory ZDI-26-1121 — http://www.zerodayinitiative.com/advisories/ZDI-26-1121/
- LM Studio v0.4.16 Release Changelog — https://lmstudio.ai/changelog/lmstudio/lmstudio-v0.4.16
- NVD Vulnerability Details CVE-2026-133995 — https://nvd.nist.gov/vuln/detail/CVE-2026-133995
- MITRE CVE Record CVE-2026-133995 — https://www.cve.org/CVERecord?id=CVE-2026-133995
Advisory ini disajikan tim ICT Cybersecurity PT Pertamina Bina Medika IHC sebagai informasi kesadaran keamanan. Verifikasi pada sumber resmi sebelum tindakan.