Cursor Desktop sandbox escape via Claude hook configuration
CVE-2026-48124 · GHSA-pc9j-3qc2-95wv · published 2026-05-21
- Severity
- High
- CVSS score
- 8.5
- Chance of exploitation (EPSS)
- Not scored
- Fixed in
- 3.0.0
- Exploitation No known exploitation
- Automatable No
- Technical impact Total
- CISA SSVC
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.
Upgrade cursor to 3.0.0 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
Update Cursor Desktop to a patched version. Workspace-sourced hook commands now require appropriate approval and are subject to the same execution policy controls as other agent shell commands.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| cursor | App | 2.4.37 | 3.0.0 |
- CriticalLiteLLM has SQL Injection in Proxy API key verificationlitellmExploited
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8n, n8nExploited
- HighLiteLLM has a sandbox escape in custom-code guardraillitellmExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- CriticalJupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesjupyter-mcp-server
- Criticalmem0ai Databricks vector store vulnerable to SQL injectionmem0ai
- CriticalCursor Desktop sandbox escape via agent-controlled working directorycursor
- CriticalCursor Desktop sandbox escape via symlink and failed path canonicalizationcursor
- HighSandbox escape via tampered Python virtual environmentscursor
- HighSandbox escape via launching privileged containerscursor
- HighSandbox escape via Git hookscursor
- HighTerminal Tool Allowlist Bypass via Environment Variablescursor
The impact, patch and workaround text comes from the advisory, shortened (published by Cursor). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.