TAU-HOME.COM
LOADING

Popular Local LLM App 'LM Studio' Hit by 9.8 Critical Unauthenticated RCE Due to MCP Schema Flaw, Detailed by ZDI

The Zero Day Initiative (ZDI) has published details on five vulnerabilities in LM Studio, including CVE-2026-133995 (CVSS 9.8), an unauthenticated remote code e

tau · November 27, 2026

#LM Studio #Vulnerability #Security #RCE #ZDI

Popular Local LLM App 'LM Studio' Hit by 9.8 Critical Unauthenticated RCE Due to MCP Schema Flaw, Detailed by ZDI

A critical security vulnerability allowing unauthenticated remote code execution has been uncovered in LM Studio, one of the most popular desktop applications for running large language models locally. On November 24, 2026, the Zero Day Initiative (ZDI) published a detailed advisory outlining this flaw alongside four other security issues.

LM Studio local LLM application security vulnerability developer server settings and code execution architecture view

Image source: https://i10x.ai/news/lm-studio-mcp-schema-unauthenticated-code-execution-cve-2026-133995

The most severe of the disclosures is CVE-2026-133995, stemming from how the application handles Model Context Protocol (MCP) tool schemas. Carrying a Common Vulnerability Scoring System (CVSS) score of 9.8 out of 10, the bug enabled attackers to execute arbitrary code without any login or authentication, demanding immediate attention from developers and users alike.

A 173-Day Information Gap and the Reality of CVE-2026-133995

A striking aspect of this disclosure is the timeline between patching and public awareness. According to ZDI records, security researchers reported the vulnerability to the vendor on June 2, 2026. The vendor shipped a fix two days later in version 0.4.16.

However, the release notes at the time listed the change merely as "Security hardening" alongside no CVE identifiers or hints that an unauthenticated code execution bug had been closed. Consequently, users had no public indication to treat the update as urgent, leaving the risks concealed for 173 days until ZDI's detailed advisory went live. The schema bug itself was credited to researchers Nikolaos Mourousias, Caue Obici, and Bruno Halltari of OtterSec.

Technically, the vulnerability occurred because the application built code directly from incoming MCP tool schemas without validating them first. That generated code executed with the full privileges of the running LM Studio process, exposing local system resources.

Four Additional Flaws and the Risk of Attack Chaining

The batch of five advisories published by ZDI highlights a cluster of weaknesses that, when combined, present severe escalation risks:

  • CVE-2026-133994: A path traversal vulnerability bypassing the plugin sandbox (CVSS 9.1), enabling arbitrary file writes under high privileges.
  • CVE-2026-133992: An authentication bypass via weak credentials on the CLI identity (CVSS 8.1).
  • CVE-2026-133989: A Server-Side Request Forgery (SSRF) flaw (CVSS 6.8) where JSON schema references in chat completion requests force the app to fetch attacker URIs.
  • CVE-2026-133991: An information disclosure bug (CVSS 5.9) where schema validation errors leak sensitive data to the client.

Security analysts note that these supporting flaws—such as the CLI credential weakness and information leaks—can be chained together with the main 9.8 RCE to establish persistent footholds on vulnerable hosts.

Who Is Exposed and How to Secure Your Environment

Casual chat users running LM Studio offline on a personal laptop face minimal risk. However, teams utilizing LM Studio as a shared model server in an office environment, or developers who enabled network accessibility for secondary devices, are operating in a much higher-risk posture.

If the server settings "Serve on Local Network" are enabled or "Require Authentication" is disabled, the local API server (defaulting to port 1234) listens to external requests from anyone on the same network. If that host runs with user accounts possessing access to source code, SSH keys, or cloud credentials, exposure can lead to severe compromises.

Recommended remediation steps include:

  1. Update to the Latest Release: Moving merely to version 0.4.16 is insufficient; users should upgrade straight to the newest available release to cover subsequent flaws, such as the October path traversal bug in the model downloader (CVE-2026-119979).
  2. Review Server Settings: In developer server settings, ensure "Serve on Local Network" is turned off unless strictly necessary, and enable "Require Authentication" with a scoped API token if other network devices must connect.
  3. Inspect Open Listeners: Verify active listeners using netstat or ss commands to ensure services do not bind to 0.0.0.0 unintentionally. Never forward port 1234 through a router or expose it via unauthenticated tunnels.

As local AI tools rapidly adopt network features and protocol integrations, ensuring default security settings keep pace is critical to maintaining true system privacy.

Sources

Impact-Site-Verification: 9b3ebd10-6c45-44cf-a014-5b8c19b7b285