Home

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.

PUBLISHED Reserved 2026-02-12 | Published 2026-02-13 | Updated 2026-02-13 | Assigner GitHub_M




HIGH: 8.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H

Problem types

CWE-862: Missing Authorization

Product status

< 2.5
affected

References

github.com/...cursor/security/advisories/GHSA-8pcm-8jpx-hv8r

cve.org (CVE-2026-26268)

nvd.nist.gov (CVE-2026-26268)

Download JSON