CVE-2025-54136
BaseFortify
Publication date: 2025-08-02
Last updated on: 2025-08-25
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| anysphere | cursor | to 1.3 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-78 | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability affects Cursor, a code editor for programming with AI, in versions 1.2.4 and below. Attackers who have write permissions on a trusted MCP configuration file in a shared GitHub repository or locally on the target's machine can modify this file to execute malicious commands remotely and persistently. Once a collaborator accepts a harmless MCP, the attacker can silently replace it with a malicious command without any warnings or prompts, leading to arbitrary code execution. This issue is fixed in version 1.3.
How can this vulnerability impact me? :
If exploited, this vulnerability allows an attacker to execute arbitrary code on your machine remotely and persistently by modifying trusted configuration files. This can lead to unauthorized actions such as running malicious programs (e.g., calc.exe), potentially compromising your system's confidentiality, integrity, and availability.
What immediate steps should I take to mitigate this vulnerability?
Upgrade Cursor to version 1.3 or later, as this version contains the fix for the vulnerability. Additionally, restrict write permissions on MCP configuration files and source repository branches to trusted users only to prevent unauthorized modifications.