Ameeba Security Research

Defensive CVE and exploit intelligence

Ameeba Blog Search
TRENDING · 1 WEEK
Attack Vector
Vendor
Severity

CVE-2025-61592: Remote Code Execution Vulnerability in Cursor Code Editor

Overview

The CVE-2025-61592 vulnerability is a critical issue that impacts Cursor, a popular code editor utilized by programmers worldwide for AI development. This vulnerability became apparent in versions 1.7 and below, where project-specific CLI configurations could overrule global configurations in Cursor’s CLI. As a result, users running the CLI within a potentially harmful repository could be susceptible to Remote Code Execution (RCE). This issue is especially concerning as RCE vulnerabilities can lead to severe consequences, such as unauthorized access to sensitive data, system compromise, or even complete system control.

Vulnerability Summary

CVE ID: CVE-2025-61592
Severity: High (8.8 CVSS Score)
Attack Vector: Network
Privileges Required: Low
User Interaction: Required
Impact: Potential system compromise or data leakage

Affected Products

Ameeba Chat Icon Share secrets securely

Ameeba is private infrastructure for communication and sensitive work built on encrypted identity instead of exposed corporate identity systems.

Passwords, credentials, confidential files, screenshots, internal discussions, sensitive AI context, and private coordination should not become exposed across ordinary communication platforms.

  • • Encrypted identity
  • • Private Spaces for organizations and teams
  • • End-to-end encrypted chat, calls, files, and notes
  • • Sensitive AI work and protected collaboration
  • • Built for information that cannot leak

Our mission is to secure human work alongside AI.

Product | Affected Versions

Cursor | 1.7 and below

How the Exploit Works

The exploit takes advantage of the automatic loading of project-specific CLI configurations from the current working directory. This process overrides global configurations in Cursor’s CLI. In a malicious repository, an attacker can craft a permissive configuration that allows shell commands and injects commands via project-specific rules or other mechanisms. This combination makes the system susceptible to Remote Code Execution attacks.

Conceptual Example Code

Given the nature of the vulnerability, the attacker could employ a malicious JSON file to override CLI settings. The following is a conceptual example of a malicious .cursor/cli.json file:

{
"command": "echo 'malicious_command';"
}

This JSON file, when loaded by the Cursor CLI, would allow the execution of the ‘malicious_command’ due to the permissive configuration. It could lead to uncontrolled access to the system or data leakage.

Workarounds and Mitigation

Affected users are advised to apply the vendor patch (2025.09.17-25b418f) immediately, which addresses this issue. If the patch cannot be applied immediately, the use of a Web Application Firewall (WAF) or Intrusion Detection System (IDS) can serve as temporary mitigation. However, these measures should be considered as short-term solutions, and the patch should be applied as soon as it is feasible to ensure system security.

Want to discuss this further? Join the Ameeba Cybersecurity Group Chat.

Disclaimer:

The information and code presented in this article are provided for educational and defensive cybersecurity purposes only. Any conceptual or pseudocode examples are simplified representations intended to raise awareness and promote secure development and system configuration practices.

Do not use this information to attempt unauthorized access or exploit vulnerabilities on systems that you do not own or have explicit permission to test.

Ameeba and its authors do not endorse or condone malicious behavior and are not responsible for misuse of the content. Always follow ethical hacking guidelines, responsible disclosure practices, and local laws.
Ameeba Chat