{"id":"CVE-2026-50548","aliases":["CVE-2026-50548"],"related":[],"kind":"vulnerability","state":"published","title":"Cursor Desktop sandbox escape via agent-controlled working directory","summary":"Cursor is a code editor built for programming with AI. Prior to 3.0, Cursor runs agent terminal commands in a sandbox by default, and the sandbox grants write access to the command's working directory. A flaw was identified in how the agent could modify the working_directory parameter, which could cause the sandbox to include writable paths outside the intended workspace. A malicious agent could set working_directory to a sensitive location and write arbitrary files outside the workspace under the user's privileges. This enables non-sandboxed Remote Code Execution — for example by overwriting the cursorsandbox helper so later commands run unsandboxed — with no user interaction beyond a benign prompt. This vulnerability is fixed in 3.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Cursor is a code editor built for programming with AI. Prior to 3.0, Cursor runs agent terminal commands in a sandbox by default, and the sandbox grants write access to the command's working directory. A flaw was identified in how the agent could modify the working_directory parameter, which could cause the sandbox to include writable paths outside the intended workspace. A malicious agent could set working_directory to a sensitive location and write arbitrary files outside the workspace under the user's privileges. This enables non-sandboxed Remote Code Execution — for example by overwriting the cursorsandbox helper so later commands run unsandboxed — with no user interaction beyond a benign prompt. This vulnerability is fixed in 3.0.","source":"cvelist"}],"published":"2026-06-25T18:47:56.569Z","modified":"2026-06-26T16:51:25.290Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":9.3,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 3.0","status":"affected"}],"vendor":"cursor","product":"cursor","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"3.0"}],"vendor":"anysphere","product":"cursor","cpe":"cpe:2.3:a:anysphere:cursor:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/cursor/cursor/security/advisories/GHSA-3p48-7v9f-v5cw","tags":["vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-06-25T19:02:45.745Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-50548","url":"https://www.cve.org/CVERecord?id=CVE-2026-50548","licence":"CVE Terms of Use","modified":"2026-06-25T19:02:54.556Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-50548","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-50548","licence":"Public domain","modified":"2026-06-26T16:51:25.290Z"}],"updatedAt":"2026-11-25T22:59:26.412Z","epss":{"score":0.00957,"percentile":0.62453,"date":"2026-12-01T12:00:22.000Z"}}