CVE-2025-32018 Details
Description
Cursor is a code editor built for programming with AI. In versions 0.45.0 through 0.48.6, the Cursor app introduced a regression affecting the set of file paths the Cursor Agent is permitted to modify automatically. Under specific conditions, the agent could be prompted, either directly by the user or via maliciously crafted context, to automatically write to files outside of the opened workspace. This behavior required deliberate prompting, making successful exploitation highly impractical in real-world scenarios. Furthermore, the edited file was still displayed in the UI as usual for user review, making it unlikely for the edit to go unnoticed by the user. This vulnerability is fixed in 0.48.7.
A vulnerability in the Cursor code editor, affecting versions 0.45.0 prior to 0.48.6, allows the Cursor Agent to automatically write to files outside the opened workspace. This issue arises from a regression in the application's file path modification permissions. Exploitation requires deliberate prompting, either by the user or through maliciously crafted context, making it highly impractical in real-world scenarios. Additionally, the edited file remains visible in the user interface for review, reducing the likelihood of unnoticed changes.
The vulnerability has been patched in Cursor version 0.48.7. Users are advised to update to this version and to review the edits made by the Cursor Agent, especially when using context that may not be trusted.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 8, 2025CISA-ADP
Assessed Apr 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/getcursor/cursor/security/advisories/GHSA-qjh8-mh96-fc86 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Cursor | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 8, 2025 | New CVE Received | [email protected] |
Volerion