🇰🇷 한글 설명
Cursor 코드 에디터의 CLI Beta 버전에서 .cursor/mcp.json 파일을 통해 악의적인 MCP 서버 설정을 업로드하여 원격 코드 실행을 달성할 수 있는 취약점입니다. 피해자가 프로젝트를 클론 후 Cursor CLI로 열면 경고 없이 악의적인 MCP 서버 명령어가 즉시 실행됩니다. 2025.09.17-25b418f 버전 이상에서 수정되었습니다.
💡 쉬운 설명
Cursor 편집기가 GitHub의 악의적인 설정 파일을 경고 없이 자동 실행하여 해커가 컴퓨터를 제어할 수 있습니다. 프로젝트를 열기만 해도 침해된 코드가 실행됩니다.
🇺🇸 원문 (English)
Cursor is a code editor built for programming with AI. In versions and below, a vulnerability in the Cursor CLI Beta allowed an attacker to achieve remote code execution through the MCP (Model Context Protocol) server mechanism by uploading a malicious MCP configuration in .cursor/mcp.json file in a GitHub repository. Once a victim clones the project and opens it using Cursor CLI, the command to run the malicious MCP server is immediately executed without any warning, leading to potential code execution as soon as the command runs. This issue is fixed in version 2025.09.17-25b418f.
📍 영향받는 시스템
Cursor CLI Beta (2025.09.17-25b418f 버전 이전)
⚔️ 공격 벡터
GitHub 저장소에 업로드된 악의적인 .cursor/mcp.json 파일이 프로젝트 열 때 확인 없이 자동 실행
🛡️ 대응 방법
Cursor를 2025.09.17-25b418f 버전 이상으로 업그레이드
🔧 검증 코드
출력된 버전 번호가 2025.09.17-25b418f 이상이면 안전함. Cursor not installed 출력 시 설치 필요
cursor --version 2>/dev/null || echo 'Cursor not installed'