Cursor < 1.2.4 RCE (GHSA-24mc-g4xr-4395)

high Nessus Plugin ID 243972

Synopsis

The Cursor instance installed on the remote host is affected a remote code execution vulnerability.

Description

The version of Cursor installed on the remote host is prior to 1.2.4. It is, therefore, affected by a remote code execution vulnerability. Attackers can achieve remote and persistent code execution by modifying an already trusted MCP configuration file inside a shared GitHub repository or editing the file locally on the target's machine. Once a collaborator accepts a harmless MCP, the attacker can silently swap it for a malicious command (e.g., calc.exe) without triggering any warning or re-prompt. If an attacker has write permissions on a user's active branches of a source repository that contains existing MCP servers the user has previously approved, or allows an attacker has arbitrary file-write locally, the attacker can achieve arbitrary code execution.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade Cursor to version 1.3 or later.

See Also

http://www.nessus.org/u?a3c9e4bb

Plugin Details

Severity: High

ID: 243972

File Name: cursor_GHSA-24mc-g4xr-4395.nasl

Version: 1.2

Type: local

Agent: windows, macosx, unix

Published: 8/6/2025

Updated: 8/7/2025

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Critical

Score: 9.0

CVSS v2

Risk Factor: High

Base Score: 9

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2025-54136

CVSS v3

Risk Factor: High

Base Score: 7.2

Vector: CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Vulnerability Information

CPE: x-cpe:/a:anysphere:cursor

Required KB Items: installed_sw/Anysphere Cursor

Patch Publication Date: 7/29/2025

Vulnerability Publication Date: 8/1/2025

Reference Information

CVE: CVE-2025-54136