🔍 CVE-2026-26268

8.0
CVSS Score
HIGH
2026-02-13
2026-02-13 21:43
✅ 완료

🇰🇷 한글 설명

Cursor 코드 에디터의 샌드박스 탈출 취약점

💡 쉬운 설명

Cursor 코드 에디터의 버전 2.5 이전에서, 악의적인 에이전트가 .git 설정을 조작하여 샌드박스를 탈출하고 원격 코드 실행(RCE)을 일으킬 수 있습니다. 사용자 상호작용 없이 Git이 자동으로 명령을 실행하여 취약점이 발생합니다.

🇺🇸 원문 (English)

Cursor is a code editor built for programming with AI. Sandbox escape via writing .git configuration was possible in versions prior to 2.5. A malicious agent (ie prompt injection) could write to improperly protected .git settings, including git hooks, which may cause out-of-sandbox RCE next time they are triggered. No user interaction was required as Git executes these commands automatically. Fixed in version 2.5.

📍 영향받는 시스템

Cursor 코드 에디터 버전 2.5 이전

⚔️ 공격 벡터

마ल웨어 에이전트의 prompt injection을 통해 .git 설정을 조작

🛡️ 대응 방법

Cursor 코드 에디터를 버전 2.5 이상으로 업데이트합니다.

🔧 검증 코드

로컬 시스템에서 Python을 설치하고, 터미널에서 위의 코드를 실행합니다. Cursor 코드 에디터와 Git이 설치되어 있어야 하며, 실행 결과는 JSON 형식으로 출력됩니다.

Shell / Script
python -c "import subprocess; output = subprocess.check_output(['git', '--version']).decode('utf-8'); cursor_version = subprocess.check_output(['cursor', '--version']).decode('utf-8'); if 'version 2.5' in cursor_version: print('{"result": "양호", "reason": "Cursor 버전이 2.5 이상"}'); else: print('{"result": "취약", "reason": "Cursor 버전이 2.5 미만"}')"

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H

💻 영향받는 소프트웨어

Git