ZDI-26-1120: (Pwn2Own) LM Studio Plugin Sandbox Directory Traversal Arbitrary File Creation Vulnerability
Summary
Zero Day Initiative (ZDI) has released a security advisory regarding a Directory Traversal and Arbitrary File Creation vulnerability in LM Studio (CVE-2026-133994 / ZDI-26-1120). Discovered during Pwn2Own, this vulnerability allows authenticated remote attackers to create arbitrary files on affected installations, potentially leading to arbitrary code execution in the context of the service account. The vulnerability has been resolved in LM Studio version 0.4.16.
Affected Products
- LM Studio (versions prior to 0.4.16)
Technical Details
The vulnerability CVE-2026-133994 exists within the plugin sandbox of LM Studio. The issue stems from insufficient validation of a user-supplied directory path prior to using it in file handling operations. An authenticated attacker can leverage this directory traversal flaw to break out of the sandbox environment and create arbitrary files on the target filesystem. This can be further exploited to execute arbitrary code with the privileges of the service account running the application.
This vulnerability holds a CVSS v3.1 score of 9.1 (Critical) with the CVSS vector: AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H.
Impact
Successful exploitation allows remote authenticated attackers to bypass sandbox restrictions, write arbitrary files onto the host filesystem, and execute malicious code under the context of the service account.
- Confidentiality: High — Attackers can gain unauthorized access to sensitive system files and data via arbitrary code execution.
- Integrity: High — Attackers can create, overwrite, or alter arbitrary application and system files.
- Availability: High — Attackers can overwrite essential system files or trigger code execution causing service disruption or crashes.
Mitigation & Remediation Recommendations
- Software Update: Upgrade LM Studio installations immediately to version 0.4.16 or later, which includes the necessary fix.
- Principle of Least Privilege: Restrict privileges assigned to the service account running LM Studio to minimize post-exploitation impact.
- Environment Isolation: Deploy the application within containerized or sandboxed environments to prevent direct unauthorized access to the host filesystem.
References
- Source Advisory ZDI-26-1120 — http://www.zerodayinitiative.com/advisories/ZDI-26-1120/
- LM Studio v0.4.16 Official Changelog — https://lmstudio.ai/changelog/lmstudio/lmstudio-v0.4.16
- NVD CVE-2026-133994 Detail — https://nvd.nist.gov/vuln/detail/CVE-2026-133994
- MITRE CVE-2026-133994 Record — https://www.cve.org/CVERecord?id=CVE-2026-133994
Advisory ini disajikan tim ICT Cybersecurity PT Pertamina Bina Medika IHC sebagai informasi kesadaran keamanan. Verifikasi pada sumber resmi sebelum tindakan.