Skip to main content
← All vulnerabilities
CVE-2026-26268

Cursor sandbox escape via Git hooks

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.5
1 proof of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • cursor cursor

    fixed in 2.5

References 2

GitHub · cursor/cursor

GitHub · dhawaldesai/agentic-ioc-scanner