CursorGHSA-8pcm-8jpx-hv8r
Sandbox escape via Git hooks
Fix: upgrade to 2.5 or later
Impact
Sandbox escape via writing .git configuration was possible in versions prior to 2.5. A malicious agent (ie prompt injection) could write to improperly protected .git settings, including git hooks, which may cause out-of-sandbox RCE next time they are triggered. No user interaction was required as Git executes these commands automatically.
Patches
Fixed in version 2.5
Credit
Novee Security Research Team
Daniel Teixeira – Nvidia AI Red Team
Philip Tsukerman
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| cursor Product | < 2.5 | 2.5 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
- Severity from
- GitHub (reviewed advisory)