CVE-2026-48124 Details
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.
A vulnerability in Cursor Desktop versions prior to 3.0.0 allows for the execution of workspace-defined Claude hook commands from the .claude/settings.local.json file without explicit user approval. This could lead to sandbox escape, persistence across agent turns, unauthorized access to local data, or follow-on compromise. The issue arises from the application's handling of hook commands, which can be configured by malicious workspaces or agent-created files to run local commands in the user's context at the end of an agent turn.
Users are advised to update Cursor Desktop to version 3.0.0 or later, where this vulnerability has been patched. In the updated version, workspace-sourced hook commands require appropriate approval and are subject to the same execution policy controls as other agent shell commands.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 15, 2026CISA-ADP
Assessed Jun 16, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/cursor/cursor/security/advisories/GHSA-pc9j-3qc2-95wv | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-829 | Inclusion of Functionality from Untrusted Control Sphere | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Cursor | 2.4.37 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 15, 2026 | New CVE Received | [email protected] |
Volerion