Cursor 0day: When Full Disclosure Becomes the Only Protection Left
TL;DR Highlight
A git.exe planted in a repo root runs in Cursor on Windows without warning; unpatched for seven months.
Who Should Read
Developers who open outside repositories in Cursor on Windows, and teams responsible for dev-environment security.
Core Mechanics
- Cursor runs git.exe from the repo root
- On Windows, Cursor looks for git binaries in several locations after loading a project.
- One of those locations is the workspace itself, so a malicious git.exe in the root runs with no click or prompt.
- The result is arbitrary code execution as the current user.
- It keeps re-executing while the project is open
- The proof of concept was Calculator renamed to git.exe.
- More Calculator windows kept appearing while the project stayed open.
- Process Monitor logged it as launched with git rev-parse --show-toplevel.
- No prompt injection needed
- No exploit chain, jailbreak, or memory corruption is required.
- Opening a project that contains git.exe is enough, per the post.
- Last verified April 30, 2026 against Cursor 3.2.16 on Windows.
- Seven months without a fix or reply
- Found and reported December 15, 2025.
- After 6+ months and 197+ new versions, it remained in the latest tested version.
- HackerOne reproduced it and delivered it to Cursor, but later update requests got no response.
- Mindgard went full disclosure
- The post was published July 14, 2026.
- Their stance is that coordinated disclosure only works when there is coordination.
- Interim mitigations: isolate and block by path
- On managed Windows, use AppLocker or Windows App Control to deny the executable name in workspace paths.
- Prefer path-based rules over hash-based ones.
- Consumers should open untrusted repos only in a VM or Windows Sandbox.
Community Reactions
- Opinion that Workspace Trust is the deeper issue
- One comment says Cursor ships with Workspace Trust disabled by default.
- It notes that .vscode/tasks.json with runOn: folderOpen already runs arbitrary code.
- Opinion that this is a Windows quirk, not just Cursor
- Several comments note Windows searches the current directory before PATH.
- They compare it to why Unix PATH omits ".", and say agents should be no different.
- Some still say Cursor should show a trust-this-directory dialog.
- Pushback that severity is overstated
- Some argue the attacker must already have placed an exe in your folder, meaning you are already compromised.
- Another comment says npm install on an untrusted repo is just as dangerous.
- Others worry about supply-chain risk since people let coding agents pull and push from git.
- Reports of failed reproduction and complaints about the writing
- One commenter copied Calculator to git.exe in several repos and saw nothing execute.
- A commenter on the receiving side of bug reports says LLM-generated reports are overwhelming triage.
- Several said the post itself reads as AI-written.
How to Apply
- Check your repo roots for a stray git.exe
- Today, search your Windows dev work folders for git.exe.
- Example: Get-ChildItem -Path $env:USERPROFILE\source -Recurse -Filter git.exe
- Delete or quarantine any hit that lives inside a repository.
- Open outside repos only in a sandbox
- Open repos of unknown origin in Windows Sandbox or a VM when using Cursor.
- Write this rule into your team onboarding doc until a patch ships.
- Add path-based execution deny rules on managed PCs
- In AppLocker or Windows App Control, deny execution of git.exe under repo root paths (e.g. %USERPROFILE%\source\repos\*\git.exe).
- Do not use hash-based rules.
- Verify Workspace Trust settings yourself
- Check in Cursor settings whether Workspace Trust is enabled.
- If off, turn it on and ship it as a team standard setting.
Try It
# Paste into Windows PowerShell: find suspicious git.exe files in your work folders (read-only, deletes nothing)
$root = "{{your work folder, e.g. $env:USERPROFILE\source\repos}}"
Get-ChildItem -Path $root -Recurse -Filter git.exe -ErrorAction SilentlyContinue |
Select-Object FullName, Length, LastWriteTime
# Next: if a hit is not under the official Git install path (e.g. C:\Program Files\Git), quarantine it and add that folder to an AppLocker path ruleTerminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques