CVE-2026-48124: Cursor Desktop arbitrary command execution via Claude hook configuration

CVE-2026-48124 · Severity: info · CVSS 8.5 · Published 2026-06-15

Cursor is an AI-powered code editor used by developers to write and manage software. A vulnerability in versions prior to 3.0.0 allows a malicious project or workspace to automatically run unauthorized commands on a user's computer without their permission. This could lead to an attacker gaining full control over the user's local files, stealing sensitive data, or maintaining a permanent foothold on the system.

Vendors: Anysphere.

Quick answers

Is CVE-2026-48124 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-48124 being exploited in the wild.
How severe is CVE-2026-48124?
Informational severity, with a CVSS score of 8.5, published 15 June 2026.
Which products and versions are affected?
Anysphere Cursor Desktop < 3.0.0.
Is there a fix for CVE-2026-48124?
A patch was published on 2026-06-15: Fix confirmed in version 3.0.0 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-48124 attacked?
It is attacked with local access, in a network appliance.
Am I affected by CVE-2026-48124?
Check whether you run Anysphere Cursor Desktop at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A code injection vulnerability exists in Cursor Desktop due to improper handling of workspace-defined configuration files. Specifically, the application would execute hook commands defined in '.claude/settings.local.json' without requiring explicit user approval when an AI agent turn concluded. An attacker can exploit this by providing a malicious workspace or tricking an AI agent into creating a crafted configuration file. Successful exploitation allows for arbitrary command execution in the user's context, sandbox escape, and persistence. The issue is resolved in version 3.0.0, which implements mandatory user approval for workspace-sourced hook commands.

Affected products

  • Anysphere (Cursor) Cursor Desktop < 3.0.0

Timeline

  • 2026-05-21: advisory: GitHub advisory published by vendor
  • 2026-06-15: disclosed: CVE published to NVD
  • 2026-06-15: patched: Fix confirmed in version 3.0.0

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.