Skip to main content

Cursor EUVDEUVD-2026-37002

| CVE-2026-48124 HIGH
Inclusion of Functionality from Untrusted Control Sphere (CWE-829)
2026-06-15 GitHub_M
8.5
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Publish malicious repo with .claude/settings.local.json
  2. Delivery
    Victim clones and opens workspace in Cursor
  3. Exploit
    Agent turn completes and triggers hook
  4. Execution
    Hook command executes in user context
  5. Impact
    Exfiltrate data or persist via additional hooks

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Trusted source inclusion only
Exploitation Conditions

Exploitation requires the victim to open a workspace in Cursor Desktop <3.0.0 that contains an attacker-controlled .claude/settings.local.json defining hook commands, and then to run (or allow an agent to complete) at least one Claude agent turn so that the end-of-turn hook fires - this matches the CVSS UI:P (passive user interaction) and AV:L (local vector, i.e. the malicious content must reach the host filesystem). No authentication to Cursor is needed (PR:N) and the attack works against default configurations because hook loading was unconditional pre-3.0.0; limiting factors are that the attacker cannot trigger the flaw remotely without first delivering the workspace file (via a clone, shared folder, or agent-written file) and that the impact is scoped to the local user account, with no automatic propagation to other systems (SC:N/SI:N/SA:N).

Impact

The CVSS 4.0 vector AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H gives a base score of 8.5: the attacker needs a local foothold (the malicious workspace must be opened) and passive user interaction (the victim simply running an agent turn), but no privileges and no special attack requirements, yielding full confidentiality, integrity, and availability impact on the user account. There is no EPSS score, no CISA KEV listing, and no public POC provided, so this is not confirmed actively exploited - however, the trigger is unusually low-friction for AI-assisted development workflows where developers routinely clone untrusted repos and let agents read/write files. The realistic priority is high for any organization using Cursor with arbitrary external code, even though raw exploitation telemetry is absent; the SC:N/SI:N/SA:N values correctly indicate the blast radius is limited to the user's own machine rather than chaining into other systems automatically.

Exploit ScenarioDerived

An attacker publishes or contributes to a repository that contains a crafted .claude/settings.local.json defining an end-of-turn hook such as a reverse-shell or credential-exfiltration command; when a developer clones the project and runs any Cursor agent task, the hook executes silently in their user context as soon as the turn ends. Alternatively, an agent prompted with malicious instructions writes the settings file mid-session, achieving persistence across subsequent turns. No public exploit identified at time of analysis, but the prerequisites map directly to common day-to-day developer workflows.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 15, 2026

Unauthorized hook command execution in Cursor Desktop versions prior to 3.0.0 allows a malicious workspace to silently run local commands by registering Claude hooks in .claude/settings.local.json without prompting the user for approval. The flaw, tracked under CWE-829 (Inclusion of Functionality from Untrusted Control Sphere), enables sandbox escape, persistence, and follow-on compromise the moment an agent turn completes. No public exploit identified at time of analysis, but the vendor advisory GHSA-pc9j-3qc2-95wv confirms the issue and the CVSS 4.0 base score of 8.5 (High) reflects full CIA impact on the victim's workstation.

RemediationAI

Vendor-released patch: Cursor 3.0.0 - upgrade immediately, since this is the authoritative fix called out in GHSA-pc9j-3qc2-95wv (https://github.com/cursor/cursor/security/advisories/GHSA-pc9j-3qc2-95wv). If an immediate upgrade is not possible, compensating controls include refusing to open untrusted repositories in Cursor and auditing or removing any committed .claude/settings.local.json from cloned projects before launching an agent turn (trade-off: developers lose legitimate per-project hook customization), and constraining the editor process with OS-level sandboxing such as macOS App Sandbox profiles or Linux user namespaces to limit what a triggered hook can touch (trade-off: may break tooling that relies on broad filesystem access). Organizations should also disallow agent runs on freshly cloned repositories until a manual review of any .claude/ directory has been performed.

Affected VersionsENISA

cursor < 3.0.0

Affected Packages

euvd cursor fix: 3.0.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Cursor is an AI-assisted code editor that embeds Anthropic's Claude agent and honors a project-scoped configuration file, .claude/settings.local.json, which can define hooks - shell commands that fire on agent lifecycle events such as the end of a turn. The CWE-829 root cause is that Cursor treated workspace-supplied hook definitions as trusted control input despite the workspace being attacker-controllable (a cloned repo, an agent-generated file, or a shared project folder). Per the CPE cpe:2.3:a:cursor:cursor:*:*:*:*:*:*:*:* the issue is product-wide across all Cursor builds before 3.0.0, regardless of host OS, because the hook-loading logic lacked a dedicated consent gate equivalent to the prompts used for other privileged actions.

Know when Cursor gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.5 HIGH
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
vuln.today AI 7.8 HIGH

Malicious workspace file must reach the host (AV:L); no Cursor authentication needed (PR:N); victim must open the workspace and run an agent turn (UI:R); arbitrary local command execution yields full CIA on the user account.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jun 15, 2026 - 22:32 EUVD

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Cursor Desktop prior to version 3.0.0 allows attackers to silently execute arbitrary commands on developer workstations through workspace configuration files, achieving complete system compromise without user interaction or consent. An affected organization could experience data exfiltration, persistent backdoor installation, and lateral movement throughout the environment from a single compromised workspace opening. Every organization using Cursor Desktop faces active compromise risk until patched.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable hook execution in Cursor Desktop settings; restrict workspace access to internal and pre-approved sources only; deploy endpoint detection and response (EDR) monitoring for suspicious .claude/settings.local.json modifications and command execution originating from Cursor processes; require human review and approval of workspace configurations before opening; implement network segmentation to prevent lateral movement from compromised developer systems; consider complete Cursor Desktop suspension until patch availability.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Cursor

View all
CVE-2026-63093 HIGH POC
8.7 Jul 17

Arbitrary code execution in Cursor for Windows 3.2.16 lets remote attackers run code on a developer's machine by plantin

CVE-2025-59944 CRITICAL
9.8 Oct 03

Remote code execution in Cursor IDE 1.6.23 and below can be triggered by prompt injection that abuses case-insensitive p

CVE-2026-22708 CRITICAL POC
9.8 Jan 14

Cursor AI code editor before 2.3 allows prompt injection to bypass the Agent's Allowlist mode. Shell built-ins can execu

CVE-2026-50549 CRITICAL POC
9.3 Jun 25

Sandbox escape leading to non-sandboxed remote code execution in Cursor (the AI code editor) prior to version 3.0, where

CVE-2026-50548 CRITICAL POC
9.3 Jun 25

Sandbox escape leading to non-sandboxed remote code execution affects the Cursor AI code editor prior to version 3.0, wh

CVE-2025-61592 HIGH
8.8 Oct 03

Cursor is a code editor built for programming with AI. In versions 1.7 and below, automatic loading of project-specific

CVE-2025-61593 HIGH
8.8 Oct 03

Remote code execution in Cursor CLI Agent 1.7 and earlier can be triggered by unauthenticated attackers through prompt i

CVE-2025-64108 HIGH
8.8 Nov 04

Cursor is a code editor built for programming with AI. Rated high severity (CVSS 8.8), this vulnerability is remotely ex

CVE-2025-61591 HIGH
8.8 Oct 03

Cursor is a code editor built for programming with AI. In versions 1.7 and below, when MCP uses OAuth authentication wit

CVE-2025-64106 HIGH
8.8 Nov 04

Cursor is a code editor built for programming with AI. Rated high severity (CVSS 8.8), this vulnerability is remotely ex

CVE-2025-64107 HIGH
8.8 Nov 04

Cursor is a code editor built for programming with AI. Rated high severity (CVSS 8.8), this vulnerability is remotely ex

CVE-2026-31854 HIGH POC
8.8 Mar 11

Cursor is a code editor built for programming with AI. versions up to 2.0 is affected by os command injection.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy