ForumsExploitsCursor's 'git.exe' Blind Spot: Silent RCE via Malicious Repositories

Cursor's 'git.exe' Blind Spot: Silent RCE via Malicious Repositories

Firewall_Admin_Joe 7/15/2026 USER

The recent report regarding Cursor automatically executing a git.exe binary found in the repository root on Windows represents a significant failure in supply chain security. It is bad enough that it executes without user interaction, but the fact that it loops continuously makes it a nightmare for containment. Effectively, cloning a repo becomes an immediate code execution attack vector, granting attackers access to source code, SSH keys, and cloud tokens.

Since there isn't a CVE assigned yet, manual detection is critical for defensive teams. You can scan your development environments for potentially malicious binaries using this PowerShell script. It looks for git.exe instances residing outside of standard installation or .git internal directories:

$scanPaths = @("C:\Dev", "C:\Source", "$env:USERPROFILE\Documents")
Get-ChildItem -Path $scanPaths -Recurse -Filter "git.exe" -ErrorAction SilentlyContinue | 
    Where-Object { 
        $_.FullName -notmatch '\\.git\\' -and 
        $_.FullName -notmatch 'Git\\cmd' -and 
        $_.FullName -notmatch 'mingw64\\bin' 
    } | 
    Select-Object FullName, Length, LastWriteTime | Format-Table -AutoSize

The lack of a sandbox or simple warning dialog here is inexcusable for a modern editor. Cursor keeps re-running the binary, meaning any payload maintains persistence without needing a separate scheduled task or registry modification. Until Cursor patches this behavior, we must treat any unvetted repo as hostile malware.

How are you handling IDE trust policies in your organization? Are you reverting to standard VS Code, or have you found a way to lock down Cursor’s execution environment?

FO
Forensics_Dana7/15/2026

This is a massive win for social engineering. If I can get a target to clone a 'config repo' during a phishing engagement, I get immediate code execution with user-level privileges. The fact that it runs in a loop without any UI indicators means we can establish persistence and exfiltrate data slowly to blend in with normal IDE traffic. I'm updating my phishing templates immediately to include fake GitHub repo links.

CO
Compliance_Beth7/15/2026

We started seeing strange process trees in our EDR this morning where cursor.exe was spawning unsigned binaries in user directories. Initially, we thought it was a dev tools issue, but this explains it. We've temporarily blocked cursor.exe via AppLocker until there is a patch. I'd recommend checking your logs for any child processes of Cursor that aren't node or python.

IA
IAM_Specialist_Yuki7/15/2026

For MSPs managing smaller dev shops, this is scary. Clients often clone random repos to test libraries. I've deployed a script via GPO that scans user profiles for git.exe and deletes it if it's not in the standard Program Files path. It's a brute-force approach, but it stops the bleeding until the vendor releases a fix.

Verified Access Required

To maintain the integrity of our intelligence feeds, only verified partners and security professionals can post replies.

Request Access

Thread Stats

Created7/15/2026
Last Active7/15/2026
Replies3
Views176