Critical Cursor 0-day Vulnerability Enables Arbitrary Code Execution Attacks
A flaw in the Cursor IDE allowed a malicious file to run automatically when a developer opened a project on Windows.
Overview
A security flaw in the Cursor IDE allows a malicious file to run automatically when a developer opens a project on Windows. The vulnerabilityA flaw in software or hardware that lets an attacker do something the maker did not intend works because the software searches for a specific tool in the project folder before checking trusted system locations. An attacker can place a fake file in the repositoryA central storage place where a software project's source code, change history, and configuration files are kept rootThe highest administrator permission level on a system, with unrestricted control over all files and programs to hijack this search process and execute code without user interaction. This issue was reported to the vendor in December 2025 but was not publicly disclosed until July 2026. The flaw is classified as a 0-day vulnerability with a severity score of 8.7. Any user who opens a repository containing this specific file structure is at risk of having their system compromised.
Terms in this story
- Vulnerability
- A flaw in software or hardware that lets an attacker do something the maker did not intend. Security advisories report a vulnerability when researchers or attackers find a coding mistake in an app or server that allows someone to break in or crash it. Security+ objective 2.3 lists the term
- repository
- A central storage place where a software project's source code, change history, and configuration files are kept. Software teams collaborate by pushing code to a shared repository, and attackers scan public repositories for accidentally committed API keys or try to poison popular projects.
- root
- The highest administrator permission level on a system, with unrestricted control over all files and programs. An attacker who gains root privileges on a server can read any user's data, alter system settings, install kernel drivers, and hide their activity from ordinary accounts.
- Arbitrary Code Execution
- A flaw that lets an attacker run any commands or program they choose on the target machine. When an advisory warns that a bug allows arbitrary code execution, an attacker who triggers the flaw can install malware, read files, or take over the program's account.
- binary
- Base 2, where each byte is written as 8 ones and zeros. In security news, the word binary refers either to raw data made of ones and zeros or to a compiled executable program that runs directly on a computer's processor. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- prompt injection
- Hiding instructions inside text or data so an AI model ignores its rules and obeys the attacker. An attacker might hide invisible text on a web page or inside an email so that when an AI assistant summarizes it, the assistant forwards private data to the attacker.
- prompt
- The text instruction or question a user or program sends to an artificial intelligence model. In AI security news, a prompt includes both the visible question typed by a user and the hidden instructions that an attacker might embed in a web page.
- executable
- A compiled program file that an operating system can load into memory and run directly. Most mail servers block attached executable files by default because double-clicking a compiled program lets it run whatever instructions the author wrote.
- privileges
- The level of authority an account or process has to change settings, read files, or run commands. Ordinary user accounts run with limited privileges so a single mistake cannot break the operating system, whereas administrator privileges allow installing drivers and viewing all files.
- bug bounty program
- A reward program where a company pays independent researchers who responsibly report security flaws in its systems. Through a bug bounty program, ethical hackers can test a company's websites and apps under clear rules and earn cash rewards for finding bugs before criminals do. Security+ objective 4.3 lists the term
- disclosure
- The process of reporting and publishing details about a newly discovered security flaw in software or hardware. In security news, disclosure refers either to a researcher privately alerting a vendor about a bug or to a company publicly notifying customers about a breach.
- security advisory
- An official bulletin from a vendor or agency warning users about a flaw and its fix. When a bug is patched, the vendor publishes a security advisory listing affected versions, the CVE code, the severity rating, and instructions for updating.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the Cyber Security News website. Cite the article, not this page.
Read the full article on Cyber Security News (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Vulnerability and patch
"Critical Cursor 0-day Vulnerability Enables Arbitrary Code Execution Attacks..." Found by reading the article; these exact words are in it - Security+ 2.3 Explain various types of vulnerabilities.
"Critical Cursor 0-day Vulnerability Enables Arbitrary Code Execution Attacks..." Found in the headline - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"Critical Cursor 0-day Vulnerability Enables Arbitrary Code Execution Attacks..." Found in the headline - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"......requires no prompt injection, no agent, no AI model in the loop, and no prior..." Found in the opening sentences - CYBR 101 week 7: Linux, Windows, permissions and firewalls
"......moment a developer opens that project on Windows. The attack requires no prompt injection,..." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Skill in analyzing anomalous code as malicious or benign.
"If an attacker plants a file named git.exe in the repository root..." Found by reading the article; these exact words are in it - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Analyze countermeasures and mitigations against potential exploitations of programming language weaknesses and vulnerabilities in system and elements.
"Mindgard proved this by renaming the Windows Calculator app to git.exe..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role