Code Execution Flaw in Cursor Code Editor
CVE-2026-50548
Key facts: CVE-2026-50548 is a critical severity (CVSS 9.3) vulnerability in cursor. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 1.0%, the estimated probability of exploitation in the next 30 days.
What is CVE-2026-50548?
CVE-2026-50548 is a vulnerability identified in the Cursor code editor, a development tool designed to facilitate programming with the assistance of AI. This vulnerability originates from the way Cursor handles commands within its sandbox environment prior to version 3.0. Specifically, the flaw exists in the system's handling of the working_directory parameter, allowing an attacker to potentially manipulate this parameter. As a result, the sandbox can include writable paths beyond the secure workspace, enabling the execution of arbitrary code outside the sandbox environment.
This means that a malicious agent can exploit this vulnerability to write files to sensitive locations within the system under the privileges of the user, leading to non-sandboxed remote code execution without requiring any direct interaction from the user. Such capabilities could significantly compromise the integrity and security of an organization's systems, as it facilitates the execution of unauthorized commands with potentially severe consequences. The issue has been addressed and fixed in version 3.0 of the software.
Potential impact of CVE-2026-50548
-
Remote Code Execution: The most significant impact of this vulnerability is the potential for remote code execution. Attackers could exploit it to run malicious code on affected systems, which can lead to unauthorized data access or manipulation.
-
Data Integrity Compromise: By writing arbitrary files outside the intended workspace, the integrity of sensitive data can be compromised. Attackers could overwrite critical system files, leading to systematic disruptions and loss of data integrity.
-
Escalation of Privileges: This vulnerability allows for actions to be taken under the user's privileges without their explicit consent. If exploited, an attacker could gain further access to the system or network, leading to a broader compromise and potential lateral movement within the organization.
Affected Version(s)
cursor < 3.0
References
More Cursor vulnerabilities
- CVE-2025-64110: Logic Bug in Cursor Code Editor Allows Unauthorized File Access(HIGH)
- CVE-2025-54135: Unauthorized File Creation Vulnerability in Cursor Code Editor by Cursor(HIGH)
- CVE-2025-54136: Remote Code Execution Vulnerability in Cursor Code Editor by Cursor(HIGH)
- CVE-2025-54132: Code Injection Vulnerability in Cursor AI Code Editor by Cursor(MEDIUM)
