Cursor can execute a malicious file from a repository

Cursor is an AI-powered code editor used to generate, review and modify code. Mindgard has disclosed a Windows vulnerability in which opening a repository containing a malicious git.exe file in its root could cause Cursor to execute it without prompting. Cursor states the issue is limited to Windows and requires the user to open an untrusted repository containing the executable. The vendor recommends enforcing Workspace Trust so unknown folders open in restricted mode. Organisations should also consider application controls and disposable environments when reviewing external code.

What this means for you if you look after developer machines

What matters most here, in our view, is which machines this involves. Your developer machines are among the most valuable endpoints the organisation has. They hold source code, access keys and production credentials, and they often run under far looser restrictions than your other clients. At the same time, pulling down an unfamiliar repository to look at it is entirely routine work for a developer.

As we see it, it is the combination that makes this serious for you. When the tool executes something from that repository without asking, the distance from curiosity to compromise is short. The outcome then does not rest on your developer's judgement.

Berigo recommends

  • Enforce Workspace Trust centrally in Cursor so unknown folders always open in restricted mode.
  • Establish a rule that external code is reviewed in disposable environments or containers, not on the developer's own machine.
  • Bring AI coding tools into the approved software portfolio with a named owner, version control and update responsibility.
  • Keep developer credentials short-lived so a compromised development environment does not yield lasting production access.

Source

Related services

Security that is understood, governed and works.

Let us help you turn security into an advantage, not a cost. Get in touch for a no-obligation conversation about where your organisation stands and what to prioritise first.

Get in touch