{"id":"CVE-2025-32018","aliases":["CVE-2025-32018"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary file write from Cursor Agent through a prompt injection from malicious @Docs","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Cursor es un editor de código diseñado para programar con IA. En las versiones 0.45.0 a 0.48.6, la aplicación Cursor introdujo una regresión que afectaba al conjunto de rutas de archivo que el Agente Cursor podía modificar automáticamente. En determinadas circunstancias, el agente podía ser inducido, ya sea directamente por el usuario o mediante un contexto malicioso, a escribir automáticamente en archivos fuera del espacio de trabajo abierto. Este comportamiento requería una incitación deliberada, lo que hacía muy impracticable su explotación en situaciones reales. Además, el archivo editado seguía mostrándose en la interfaz de usuario como de costumbre para su revisión por parte del usuario, lo que impedía que la edición pasara desapercibida. Esta vulnerabilidad se corrigió en la versión 0.48.7.","source":"nvd"}],"published":"2025-04-08T15:49:19.550Z","modified":"2026-06-17T09:11:19.777Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":">= 0.45.0, < 0.48.7","status":"affected"}],"vendor":"getcursor","product":"cursor","source":"cvelist"}],"references":[{"url":"https://github.com/getcursor/cursor/security/advisories/GHSA-qjh8-mh96-fc86","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-04-08T20:01:20.696Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-32018","url":"https://www.cve.org/CVERecord?id=CVE-2025-32018","licence":"CVE Terms of Use","modified":"2025-04-08T20:01:45.654Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-32018","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32018","licence":"Public domain","modified":"2026-06-17T09:11:19.777Z"}],"updatedAt":"2026-11-25T22:58:56.217Z","epss":{"score":0.00418,"percentile":0.38102,"date":"2026-12-01T12:00:22.000Z"}}