Cybersecurity news

Jessica Doner

Back to the list

Cursor Security Bug Allowed Repositories to Execute Commands Before Trust Verification

Infosecurity Magazine,

A coding tool flaw let cloned repositories run commands before trust checks, even with the sandbox on, and the vendor closed the report as having no security impact.

Vulnerabilities and patchesAI and security

Overview

A security flaw in Cursor's command-line coding agent allowed a cloned repositoryA central storage place where a software project's source code, change history, and configuration files are kept to execute commands on a developer's machine before the user was asked to trust it. This issue occurred even when the sandboxAn isolated test environment where a program can run without touching the rest of the computer feature was explicitly enabled, because the setup step ran under a policy that disabled the sandbox entirely. The agent read a tracked configuration fileA text file that stores settings, network addresses, and options for how a program or server runs from the repository and passed its contents directly to a shellThe command-line interpreter program that accepts text commands and runs them on an operating system without any parsing or allowlistAn explicit list of approved programs, IP addresses, or email senders that a system permits. Manifold Security reported the issue to Cursor on July 20 and published its findings on August 10. Cursor shipped a fix for the pre-trust behavior three days after the report but closed the submission as informative. Developers who use the isolated worktree feature are affected by this vulnerability.

Terms in this story

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.
sandbox
An isolated test environment where a program can run without touching the rest of the computer. Web browsers run each tab inside a sandbox so a malicious page cannot read your personal files, and analysts detonate suspicious attachments in a sandbox to watch what they do. Security+ objective 4.1 lists the term
configuration file
A text file that stores settings, network addresses, and options for how a program or server runs. Attackers who gain read access to a server look for its configuration file first because it often contains database passwords, API keys, and internal server paths.
shell
The command-line interpreter program that accepts text commands and runs them on an operating system. When an attacker exploits a web server and pops a shell, they can type operating system commands directly as if they were sitting at the server's keyboard.
allowlist
An explicit list of approved programs, IP addresses, or email senders that a system permits. A strict server allowlist lets only approved administrative tools run, so even if an attacker uploads a new malware binary the operating system refuses to launch it. Security+ objective 2.5 lists the term
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.
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.
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.
SSH keys
A cryptographic key pair used to sign in to remote servers over SSH without a password. Software engineers store a private SSH key on their laptop and place the matching public key on cloud servers, making stolen SSH keys a prime target for infostealers.
cloud credentials
Access keys, tokens, or login secrets that grant control over cloud servers and storage. Attackers scan public code repositories and developer laptops for cloud credentials so they can spin up cryptominers or download company databases.
reverse shell
A connection where an infected machine calls out to the attacker's server and hands over a command prompt. Because company firewalls usually block incoming connections from the internet but allow outgoing traffic, attackers make the victim computer open a reverse shell back to them.
persistence
The tricks an attacker uses to keep access to a computer after a reboot or password change. To maintain persistence on an infected laptop, malware might add itself to the startup folder or create a hidden scheduled task that runs every time the machine turns on.

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 Infosecurity Magazine website. Cite the article, not this page.

Read the full article on Infosecurity Magazine (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.

How a story is connected to the course, and every objective, week and job role

Related