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

Published Apr 8, 2025
·
Updated

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 Software

1 affected component
Cursor Cursor>=0.45.0<=0.48.6

Event History

Apr 8, 2025
CVE Published
via MITRE·03:49 PM
Data Sourced
via MITRE·03:49 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2025-32018?

CVE-2025-32018 is classified as a moderate severity vulnerability due to its ability to allow unauthorized file path modifications under specific conditions.

2

How do I fix CVE-2025-32018?

To mitigate CVE-2025-32018, users should update Cursor to a version beyond 0.48.6 to eliminate the regression causing the vulnerability.

3

Which versions of Cursor are affected by CVE-2025-32018?

CVE-2025-32018 affects Cursor versions 0.45.0 through 0.48.6.

4

What are the potential impacts of CVE-2025-32018?

The potential impact of CVE-2025-32018 includes unauthorized modifications to file paths made by the Cursor Agent.

5

Who is the vendor responsible for CVE-2025-32018?

The vendor responsible for CVE-2025-32018 is Cursor, which develops the Cursor code editor.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203