CVE-2025-64109
JSON

8.8high

Cursor CLI Beta: Command Injection via Untrusted MCP Configuration

Severity
8.8high CVSS:3.1 by GitHub_M
Exploit likelihood
0.52% (higher than 45% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

Cursor is a code editor built for programming with AI. In versions and below, a vulnerability in the Cursor CLI Beta allowed an attacker to achieve remote code execution through the MCP (Model Context Protocol) server mechanism by uploading a malicious MCP configuration in .cursor/mcp.json file in a GitHub repository. Once a victim clones the project and opens it using Cursor CLI, the command to run the malicious MCP server is immediately executed without any warning, leading to potential code execution as soon as the command runs. This issue is fixed in version 2025.09.17-25b418f.

Affected

Product or packageVersionsReported by
cursor cursor< 2025.09.17-25b418fCVE List

Classification

CWE-78

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Cursor is a code editor built for programming with AI. In versions and below, a vulnerability in the Cursor CLI Beta allowed an attacker to achieve remote code execution through the MCP (Model Context Protocol) server mechanism by uploading a malicious MCP configuration in .cursor/mcp.json file in a GitHub repository. Once a victim clones the project and opens it using Cursor CLI, the command to run the malicious MCP server is immediately executed without any warning, leading to potential code execution as soon as the command runs. This issue is fixed in version 2025.09.17-25b418f.

NVD (es)

Cursor es un editor de código diseñado para programar con IA. En versiones y anteriores, una vulnerabilidad en Cursor CLI Beta permitió a un atacante lograr la ejecución remota de código a través del mecanismo del servidor MCP (Model Context Protocol) al cargar una configuración MCP maliciosa en el archivo .cursor/mcp.json en un repositorio de GitHub. Una vez que una víctima clona el proyecto y lo abre usando Cursor CLI, el comando para ejecutar el servidor MCP malicioso se ejecuta inmediatamente sin ninguna advertencia, lo que lleva a una posible ejecución de código tan pronto como se ejecuta el comando. Este problema está solucionado en la versión 2025.09.17-25b418f.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-64109 changed 2025-11-07CVE Terms of Use
NVDCVE-2025-64109 changed 2026-10-19Public domain