LIVE · cybersecurity feed
Live wire
vulnerability

Cursor Security Bug Allowed Repositories to Execute Commands Before Trust Verification

A security flaw in Cursor's command-line coding agent allowed malicious code from a cloned repository to execute on a developer's machine without prior trust verification or proper sandboxing. The vulnerability, discovered by Francisco Rosales of Manifold Security, was reported to Cursor on July 20 and publicly disclosed on August 10.

ZeroDay News ·

Source: Infosecurity Magazine

A security flaw in Cursor's command-line coding agent allowed malicious code from a cloned repository to execute on a developer's machine without prior trust verification or proper sandboxing. The vulnerability, discovered by Francisco Rosales of Manifold Security, was reported to Cursor on July 20 and publicly disclosed on August 10.

The issue resided in Cursor's "isolated worktree" feature, designed to keep an AI agent separate from a developer's primary working tree. When the agent was initiated with the worktree flag, it automatically performed a setup step. This step involved reading a configuration file from the cloned repository and directly passing its contents to a shell, without any parsing, allowlisting, or user prompt. This allowed any command within the configuration file to run immediately upon cloning.

Manifold Security highlighted the broad scope of potential exploitation, noting that an attacker could use this to read SSH keys, extract cloud credentials, establish a reverse shell, or achieve persistence on the compromised system. The setup process also ran under a hardcoded policy that effectively disabled the sandbox, meaning that even if a user explicitly enabled sandboxing, it would not override this behavior.

Cursor released a fix for the pre-trust execution aspect of the vulnerability three days after Manifold Security's report, on July 23, with build 2026.07.23-e383d2b. This update moved the setup command behind a trust prompt, requiring user consent before execution. However, Manifold Security stated that the sandbox bypass issue remains unpatched in current builds.

Despite the fix, Cursor closed the security report as "informative," asserting that exploitation required a user to clone or open an attacker-controlled repository and that the report did not demonstrate a bypass of workspace trust. Manifold Security countered that cloning repositories is a fundamental function of the product and that similar preconditions existed for a previous vulnerability.

This is not the first time Cursor has faced such a vulnerability. In 2025, a repository-supplied file in the same directory caused an attacker's server to auto-start upon opening, leading to CVE-2025-64109, which received a high severity rating of 8.8. Manifold Security noted that the worktree feature, which carried the current flaw, was introduced five months after the fix for CVE-2025-64109, effectively reintroducing a similar primitive.

Cursor did not publish a security advisory for the recent fix, nor was the build mentioned in its July changelog. Manifold Security emphasized the importance of advisories for informing users running affected versions, pointing out that Cursor had published advisories for similar patterns twice before. Developers using the worktree flag are advised to update to build 2026.07.23-e383d2b or later, or to use the flag that completely skips worktree setup.

vulnerabilitypatch
ShareXLinkedInWhatsAppFacebook

More News

view all →
security

Canadian cybersecurity executive arrested in federal extortion case

A Canadian cybersecurity executive was arrested in Pennsylvania on Thursday, facing federal charges of conspiracy to commit extortion. Edward Dubrovsky, 54, a co-founder and former Chief Operating Officer of CYPFER, a firm specializing in ransomware negotiation, is charged with conspiring to threaten the confidentiality of information for extortion and conspiring to commit Hobbs Act extortion,…

breach

Criminal IP Introduces AITEM as the Next Evolution of Attack Surface Management

AI SPERA, the company behind the cyber threat intelligence platform Criminal IP, has announced AITEM (AI-Powered Threat Exposure Management), an expansion of its Attack Surface Management (ASM) offerings. AITEM aims to move beyond traditional asset discovery to provide a more comprehensive approach to understanding, prioritizing, and responding to security exposures. The platform is scheduled…

ai

AI Is Getting Really Good at Messing With Cybercriminals

Anti-cybercrime initiatives are increasingly deploying artificial intelligence to disrupt scammers by engaging them with lifelike bots, which the criminals mistake for genuine victims. This strategy aims to waste scammers' time and resources while gathering intelligence on their operations.

ransomware

FBI Arrests Ransomware Negotiation Firm Co-Founder in ShinyHunters Probe

The Federal Bureau of Investigation (FBI) has reportedly arrested Edward Dubrovsky, a co-founder of the ransomware negotiation firm Cypfer and currently associated with CyberSteward. The arrest is said to be part of the ongoing ShinyHunters investigation, specifically in connection with an incident involving FBI job applicant data.

ai

The Third-Party Agent Problem: Why Security Built for AI You Chose Misses the Agents You Didn't

A new report highlights a significant blind spot in enterprise security architectures concerning the proliferation of third-party AI agents. The forthcoming 2026 State of Agent Security Report indicates that current security models, often designed to protect AI systems directly chosen and deployed by an organization, frequently fail to account for AI capabilities embedded within third-party…

security

Insider Cyber Extortion Plot Against Industrial Firm Lands Engineer in Prison

A former core infrastructure engineer has been sentenced to prison for an attempted cyber extortion plot against an industrial firm. The engineer reportedly deleted administrative accounts and reset hundreds of user passwords, subsequently demanding a ransom of 20 Bitcoin to prevent further disruption to the company's servers.