Arbitrary file write from Cursor Agent through a prompt injection from malicious @Docs
Published Apr 8, 2025
8.1
HIGHCVSS 3.1
EPSS 0.40%
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.
Affected products
-
- Version >= 0.45.0, < 0.48.7StatusaffectedConstraints-
- Version
No data.
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (2)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-10400 Advisory
- https://github.com/getcursor/cursor/security/advisories/GHSA-qjh8-mh96-fc86 x_refsource_CONFIRM
| Link | Providers | Tags |
|---|---|---|
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-10400 | Advisory | |
| https://github.com/getcursor/cursor/security/advisories/GHSA-qjh8-mh96-fc86 | x_refsource_CONFIRM |
Change history (0)
No recorded changes yet.