CVE-2025-61590 (CNNVD-202510-457)
中文标题:
Cursor 代码注入漏洞
英文标题:
Cursor is vulnerable to RCE via .code-workspace files using Prompt Injection
漏洞描述
中文描述:
Cursor是Cursor开源的一个 AI 代码编辑器。 Cursor 1.6及之前版本存在代码注入漏洞,该漏洞源于攻击者可通过Visual Studio Code Workspaces修改工作区设置,可能导致远程代码执行。
英文描述:
Cursor is a code editor built for programming with AI. Versions 1.6 and below are vulnerable to Remote Code Execution (RCE) attacks through Visual Studio Code Workspaces. Workspaces allow users to open more than a single folder and save specific settings (pretty similar to .vscode/settings.json) for the folders / project. An untitled workspace is automatically created by VS Code (untitled.code-workspace), which contains all the folders and workspace settings from the user's current session, opening up an entire new attack vector if the user has a .code-workspace file in path (either untitled created automatically or a saved one). If an attacker is able to hijack the chat context of the victim (such as via a compromised MCP server), they can use prompt injection to make the Cursor Agent write into this file and modify the workspace. This leads to a bypass of CVE-2025-54130 which can lead to RCE by writing to the settings section. This issue is fixed in version 1.7.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| cursor | cursor | < 1.7 | - | - |
cpe:2.3:a:cursor:cursor:<_1.7:*:*:*:*:*:*:*
|
| anysphere | cursor | * | - | - |
cpe:2.3:a:anysphere:cursor:*:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
参考链接
cve.org
CVSS评分详情
3.1 (cna)
HIGHCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2025-61590 |
2025-11-11 15:23:33 | 2025-11-11 07:40:48 |
| NVD | nvd_CVE-2025-61590 |
2025-11-11 15:01:04 | 2025-11-11 07:48:35 |
| CNNVD | cnnvd_CNNVD-202510-457 |
2025-11-11 15:12:30 | 2025-11-11 08:00:20 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 代码注入
- cnnvd_id: 未提取 -> CNNVD-202510-457
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- affected_products_count: 1 -> 2
- data_sources: ['cve'] -> ['cve', 'nvd']