Cursor
Cursor sandbox escape via Git hooks
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.5
Fixed in 2.5
Mitigation
Upgrade cursor to 2.5 or later.
References
- Vendor advisory github.com/cursor/cursor/security/advisories/G…
Timeline
Days relative to CVE publicationFirst public PoC 186 days after publication; not in CISA KEV. First PoC: BOSSMANIWAY/blame-poisoning (created 18 Aug 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs · 1 suspicious or fake
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| BOSSMANIWAY/blame-poisoning | 18 Aug 2026 +186 d | 0 | PoC |
Suspicious or fake 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| dhawaldesai/agentic-ioc-scanner | 5 May 2026 +81 d | 1 | Suspicious · score 100
Why suspicious
|
Only PoCs count toward the first-PoC date and the characteristics below. Suspicious repositories (score ≥ 50) never count. Do not run PoC code from unknown sources.