CursorGHSA-534m-3w6r-8pqr
Bypassing allow list to execute an arbitrary command
Fix: upgrade to 1.3 or later
Summary
An attacker can bypass allow list in auto-run mode with backtick(\) character or $(cmd)`.
Impact
If a user has swapped Cursor from it's default settings (requiring approval for every terminal call) to an allowlist, an attacker can execute arbitrary command execution outside of the allowlist without user approval. An attacker can trigger this vulnerability if chained with indirect prompt injection.
Remediation
The allowlist logic has switched to a more robust parser.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| Cursor Product | < 1.3 | 1.3 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
- Severity from
- GitHub (reviewed advisory)