# CVE-2025-32018: Arbitrary file write from Cursor Agent through a prompt injection from malicious @Docs

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2025-04-08T15:49:19.550Z
- Modified: 2026-06-17T09:11:19.777Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- getcursor cursor: >= 0.45.0, < 0.48.7

## References

- <https://github.com/getcursor/cursor/security/advisories/GHSA-qjh8-mh96-fc86>

## Sources

- CVE List: [CVE-2025-32018](https://www.cve.org/CVERecord?id=CVE-2025-32018), CVE Terms of Use, modified 2025-04-08
- NVD: [CVE-2025-32018](https://nvd.nist.gov/vuln/detail/CVE-2025-32018), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-32018 · Whole record: https://cve.day/CVE-2025-32018.json · Rebuilt by cve.day 2026-11-25T22:58:56.217Z
