Cursor IDE Executes Malicious `git.exe` From Poisoned Repositories
Emerging Technology Risk · 11 sources · Updated 4mo ago · First seen Jul 14, 2026

Researchers disclosed a Windows arbitrary code execution flaw in the Cursor AI coding IDE that causes the application to automatically run a malicious git.exe placed in the root of a repository when the project is opened. Mindgard said the issue stems from Cursor's Git path resolution logic searching the workspace itself for Git binaries, enabling attacker-controlled code to execute with the developer's privileges without clicks, prompts, or warnings; the payload may also be triggered repeatedly during normal use. In a demonstration, Mindgard renamed Windows Calculator to git.exe and showed Cursor launched it simply by opening the poisoned repository.
Mindgard said it first reported the vulnerability to Cursor in December 2025, later resubmitted it through HackerOne after contacting the company's CISO, and that the flaw was still present in Cursor version 3.2.16 as of late April 2026 and in the latest version it tested before publication. Cursor told Dark Reading it was addressing the issue. Until a fix is available, Mindgard urged developers to open untrusted repositories only in isolated environments and recommended enterprise Windows controls such as AppLocker or Windows App Control to reduce exploitation risk.
Why it matters
Impact assessment
Cursor for Windows users are exposed to high-severity arbitrary code execution when opening a poisoned repository in the IDE. The primary risk falls on software developers, engineering workstations, and organizations that allow developers to open third-party, open-source, or externally shared repositories on Windows endpoints.
The impact is severe because attacker-controlled code runs automatically as the logged-in user, without prompts, and may execute repeatedly during normal IDE activity. This creates direct risk of credential theft, source code and secret exposure, malware staging, ransomware deployment, and downstream software supply-chain compromise from compromised developer environments.
The exposure appears broad for Windows-based Cursor deployments rather than narrowly targeted, because exploitation only requires a crafted repository containing a malicious git.exe in the repo root. Public reporting describes simple proof-of-concept exploitation and states the issue remained present in Cursor 3.2.16 and the latest tested build before disclosure, but the provided references do not confirm active in-the-wild exploitation.
Supporting facts
- Affected vendor: Anysphere
- Affected product: Cursor
- Affected platform: Windows
- Confirmed affected version: Cursor 3.2.16
- User population at risk: developers opening cloned or downloaded repositories in Cursor
- Trigger condition: opening a repository containing a malicious
git.exein the repository root - Execution context: current logged-in user / developer privileges
- Potential consequences cited: credential theft, keylogging, backdoor installation, ransomware loaders, source code theft, development secret theft
- Scope: suitable for poisoned repository and open-source project poisoning scenarios
- Exploitation status: public disclosure and proof of concept available; no confirmed in-the-wild exploitation in the provided sources

