CVE-2025-61593: Cursor CLI Agent: Sensitive File Overwrite Bypass

Published Oct 3, 2025
·
Updated

Cursor is a code editor built for programming with AI. In versions 1.7 and below, a vulnerability in the way Cursor CLI Agent protects its sensitive files (i.e. /.cursor/cli.json) allows attackers to modify the content of the files through prompt injection, thus achieving remote code execution. A prompt injection can lead to full RCE through modifying sensitive files on case-insensitive filesystems. This issue is fixed in a commit, 25b418f, but has yet to be released as of October 3, 2025.

Affected Software

2 affected components
Cursor Cursor CLI Agent<1.7
anysphere Cursor<=1.7

Event History

Oct 3, 2025
CVE Published
via MITRE·05:28 PM
Data Sourced
via MITRE·05:28 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeaknessAffected Software
Mar 19, 57743
Event
via NVD·05:01 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-61593?

CVE-2025-61593 is considered a high severity vulnerability due to its potential for remote code execution via prompt injection.

2

How do I fix CVE-2025-61593?

To mitigate CVE-2025-61593, upgrade the Cursor CLI Agent to version 1.8 or later.

3

What versions are affected by CVE-2025-61593?

CVE-2025-61593 affects all versions of Cursor CLI Agent up to and including 1.7.

4

What kind of attack does CVE-2025-61593 facilitate?

CVE-2025-61593 facilitates prompt injection attacks that can modify sensitive files in the Cursor CLI Agent.

5

Is there a timeline for a fix for CVE-2025-61593?

A fix for CVE-2025-61593 is available in version 1.8 and later of the Cursor CLI Agent.

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