# CVE-2026-26268: Cursor sandbox escape via Git hooks

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.69%, higher than 54% of CVEs (2026-12-01)
- Published: 2026-02-13T16:54:04.712Z
- Modified: 2026-06-17T10:26:00.920Z
- Weaknesses: CWE-862
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- cursor cursor: < 2.5
- anysphere cursor: before 2.5

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/cursor/cursor/security/advisories/GHSA-8pcm-8jpx-hv8r> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-26268](https://www.cve.org/CVERecord?id=CVE-2026-26268), CVE Terms of Use, modified 2026-02-13
- NVD: [CVE-2026-26268](https://nvd.nist.gov/vuln/detail/CVE-2026-26268), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-26268 · Whole record: https://cve.day/CVE-2026-26268.json · Rebuilt by cve.day 2026-11-25T22:59:13.847Z
