CVE-2026-48124 Cursor Desktop sandbox escape via Claude hook configuration
Attackers can execute arbitrary local commands via malicious workspace hook configurations, leading to sandbox escape and data access.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-48124?
CVE-2026-48124 is a high-severity code injection vulnerability in cursor, published on 15 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Which versions are affected by CVE-2026-48124?
How do I fix CVE-2026-48124?
No fix has been published for CVE-2026-48124 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-48124 being exploited?
There is no known exploitation of CVE-2026-48124 in the wild and no public exploit code.