AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

CursorGHSA-v64q-396f-7m79

Arbitrary code execution Permissive CLI Config in Cursor CLI

Cursor

CVE-2025-61592 · Published Oct 2, 2025

High8.8
Fix: upgrade to 2025.09.17-25b418f or later
GitHub advisory

Summary

Due to automatic loading of project-specific CLI configuration that affected certain global configurations under the current working directory (<project>/.cursor/cli.json) while using Cursor CLI, users running the CLI inside a malicious repo context are prone to Remote Code Execution via a combination of permissive configuration (allowed shell commands) and prompt injection delivered via project specific Rules (<project>/.cursor/rules/rule.mdc) or other mechanisms.

Impact

Using Cursor CLI inside a malicious context (repo, directory, etc) could potentially lead to Remote Code Execution on the end-user.

Fix

The project-specific CLI configuration was limited to only non-security settings, removing the allowlist from the vulnerable configurations.

Credit

The vulnerability was discovered by Assaf Levkovich of the JFrog Security Research team.

Affected versions

PackageAffectedFixed in
Cursor CLI
Product
< 2025.09.17-25b418f2025.09.17-25b418f
Details and references
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Severity from
GitHub (reviewed advisory)
Weakness
CWE-829

More Cursor advisories

All Cursor