CurXecute Vulnerability in Cursor IDE: A Wake-Up Call for Develop
Cursor IDE's Model Context Protocol was not properly sandboxed, so malicious model prompts embedded in shared snippets or plugins could trigger file creation and shell command execution without user interaction. Attackers could thus achieve remote code execution on a developer's machine.
Published on medium.com
On August 4, 2025, security researchers disclosed a critical vulnerability in Cursor IDE, an AI-powered development environment widely adopted by software engineers for enhanced code generation. The flaw, dubbed “CurXecute” (CVE-2025–54135), allowed Remote Code Execution (RCE) without requiring any user…
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Model Context Protocol, which passes instructions between the AI model and the local development environment, was not properly sandboxed, so model-generated instructions could reach the operating system directly.
Impact
An attacker could run shell commands and create or modify files on a developer's machine without any user interaction, though the text does not say whether any real-world exploitation occurred.
What the attacker needed
Cursor IDE before version 1.3.0; malicious prompt in a snippet or plugin; no user interaction needed
The fix
Cursor Technologies fixed it in version 1.3.0 by adding a strict sandbox around model-executed instructions, filtering prompts that try to touch the local runtime, and offering optional human-in-the-loop confirmation.
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 write-up has not been written yet. The Original tab links to the source.
Cursor is a code editor that uses an AI assistant to help write code. A flaw meant that text hidden in shared code snippets or plugins could instruct the AI to run commands on the developer's computer, without the developer approving anything. This let an attacker run their own programs on that machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.