Skip to content
MediumNewsLLM-specific

Critical Cursor AI Code Editor Flaws Could Lead to OS-Level Remote Code Execution

Published
Record updated
View JSON

Summary

Cato Networks reports two critical flaws in the Cursor AI code editor, tracked as CVE-2026-50548 and CVE-2026-50549 (CVSS 9.8) and dubbed DuneSlide, that can lead to remote code execution outside the IDE's sandbox. The first abuses the working_directory parameter, which adds a non-default path to the allow list, letting a prompt injection delivered through an MCP server request make the LLM overwrite the cursorsandbox executable. The second uses symbolic links to bypass out-of-bounds write protections because of a path canonicalization flaw.

Mitigation

Patches for both were included in Cursor 3.0, released on April 2. Cato reported the flaws to Cursor in February.