Skip to main content
Mallory
← Back to News
ai-platform-securityendpoint-software-vulnerabilitywidely-deployed-product-advisoryinitial-access-method

Cursor IDE Executes Malicious `git.exe` From Poisoned Repositories

Emerging Technology Risk · 11 sources · Updated 4mo ago · First seen Jul 14, 2026

Cursor IDE Executes Malicious `git.exe` From Poisoned Repositories

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.exe in 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
New surface, new adversariesTrack how attackers are adapting to this technology.
Track this risk
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · Dec 15, 2025 – Jul 14, 2026
  1. Jul 14, 20265mo ago

    Cursor says it is addressing the vulnerability

    Cursor told Dark Reading it was addressing the reported issue. This vendor response came after public reporting that the flaw remained present in the latest tested version.

    Cursor IDE Auto-Executes Malicious Code in Poisoned Repos
  2. Jul 14, 20265mo ago

    Mindgard publicly discloses Cursor poisoned-repo 0-day

    Mindgard publicly disclosed the Cursor vulnerability after months of attempted coordinated disclosure, describing how opening a poisoned repository can trigger automatic execution of a malicious git.exe with the developer's privileges. The disclosure included mitigation advice such as using isolated environments and Windows application control policies until a patch is available.

    Cursor IDE Auto-Executes Malicious Code in Poisoned Repos
  3. Apr 30, 20267mo ago

    Vulnerability remains unfixed in Cursor 3.2.16

    Mindgard states the issue was still present in Cursor version 3.2.16 as of April 30, 2026. According to the disclosure, the application continued to auto-execute an attacker-controlled git.exe from the workspace without prompts or warnings.

    Cursor 0day: When Full Disclosure Becomes the Only Protection Left - Mindgard
  4. Dec 15, 20251y ago

    Mindgard reports Cursor arbitrary code execution flaw to vendor

    Mindgard says it first reported a Windows arbitrary code execution vulnerability in Cursor to the vendor on December 15, 2025. The flaw allows a malicious git.exe placed in a repository root to be executed automatically when the repository is opened.

    Cursor IDE Auto-Executes Malicious Code in Poisoned Repos
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Cursor

Organizations

2 linked
AnysphereCursor
Do you run this?Follow how adversaries are adapting to this technology, and where it touches your stack today.
Track This Risk
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.