CVE-2026-26268: Cursor - Remote Code Execution
- Cve: CVE-2026-26268
- Name: Cursor - Remote Code Execution
- 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.
- Impact: Malicious agents can achieve out-of-sandbox remote code execution via git hooks, potentially compromising the host system.
- Remediation: Update to version 2.5 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.9
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Epss score: 0.0069
- Epss percentile: 0.53528
- Assignee: [email protected]
- Published at: 2026-02-13T17:16:14Z
- Age in days: 284
- Modified at: 2026-06-17T10:26:00Z
- Patch available: yes
- Public exploits total: 1
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-26268
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-862 | Missing Authorization |
Hackerone
- Reports: 2
- Rank: 3806
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/dhawaldesai/agentic-ioc-scanner | poc-in-github | 2026-05-05 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/cursor/cursor/security/advisories/GHSA-8pcm-8jpx-hv8r | nvd | Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| anysphere:cursor | < 2.5 | no | nvd | /v1/products/anysphere/cursor |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| cursor/cursor | security_advisory | yes | /v1/repositories/cursor/cursor |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-05-05
- Remote: yes
- Authentication required: yes
- Hackerone reports: 2
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, exposed hosts