High severity · published Apr 8, 2025
CVE-2025-32018
Arbitrary file write from Cursor Agent through a prompt injection from malicious @Docs
8.0
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
Attack vector
Network
Complexity
High
Privileges
Low
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 35% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CU
cursor · getcursor
>= 0.45.0, < 0.48.7 · source: vendor
Affected product
CU
cursor
getcursor
More from cursor
9.2
CVE-2024-48919
RCE via Prompt Injection Into Cursor's Terminal Cmd-K
5.9
CVE-2025-49150
Cursor Agent Potentially Leaks Information using JSON schema
3.8
CVE-2024-45599
TCC Bypass in Cursor's macOS Application