Cursor is a code editor built for programming with AI. 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. Fixed in version 2.5.
https://thehackernews.com/2026/07/cursor-flaw-lets-malicious-cloned.html
https://thehackernews.com/2026/07/critical-cursor-flaws-could-let-prompt.html
https://thehackernews.com/2026/04/google-fixes-cvss-10-gemini-cli-ci-rce.html
https://hackread.com/cursor-ai-ide-vulnerability-code-execution-git-hooks/