8.1high
Cursor sandbox escape via Git hooks
- Severity
- 8.1high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.69% (higher than 54% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| cursor cursor | < 2.5 | CVE List |
| anysphere cursor | before 2.5 | NVD |
All scores
| GitHub_M | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H |
| NVD | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Cursor es un editor de código diseñado para programar con IA. El escape de la sandbox mediante la escritura de la configuración .git era posible en versiones anteriores a la 2.5. Un agente malicioso (es decir, inyección de prompt) podría escribir en configuraciones .git protegidas de forma inadecuada, incluyendo los git hooks, lo que podría causar RCE fuera de la sandbox la próxima vez que se activen. No se requería interacción del usuario, ya que Git ejecuta estos comandos automáticamente. Corregido en la versión 2.5.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-26268 changed 2026-02-13 | CVE Terms of Use |
| NVD | CVE-2026-26268 changed 2026-06-17 | Public domain |