CVE-2026-48124: Cursor Desktop - Command Injection
- Cve: CVE-2026-48124
- Name: Cursor Desktop - Command Injection
- Description: Cursor is a code editor built for programming with AI. In versions prior to 3.0.0, the Cursor Desktop could execute workspace-defined Claude hook commands from .claude/settings.local.json without dedicated user approval. A malicious workspace or agent-created file could configure hooks that run local commands in the user's context when an agent turn ends. This could allow sandbox escape, persistence across turns, local data access, or follow-on compromise. This issue has been fixed in version 3.0.0.
- Impact: Attackers can execute arbitrary local commands, enabling sandbox escape, persistence, and local data access.
- Remediation: Update to version 3.0.0 or later.
- Vulnerability type: command_injection
- Vulnerability impact: command_injection
- Requirements: Attacker needs to create or control workspace or agent-created files
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.5
- Cvss vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- Epss score: 0.00144
- Epss percentile: 0.03661
- Assignee: [email protected]
- Published at: 2026-06-15T21:17:13Z
- Age in days: 162
- Modified at: 2026-06-17T10:54:52Z
- Patch available: yes
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-48124
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirement type
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
Hackerone
- Reports: 1
- Rank: 5211
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/cursor/cursor/security/advisories/GHSA-pc9j-3qc2-95wv | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| anysphere:cursor | < 3.0.0 | no | cna_alias_text | /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
- Hackerone reports: 1
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts