🔍 CVE-2026-49986

0.0
CVSS Score
UNKNOWN
2026-08-14
2026-09-18 20:09
✅ 완료

🇰🇷 한글 설명

Cortex MCP 서버(neuro-cortex-memory) 3.17.1 미만 버전에서 발생하는 취약점으로, CLAUDE_PROJECT_DIR 환경 변수를 신뢰할 수 있는 개발 체크아웃 디렉토리로 잘못 처리합니다. 공격자가 특정 마커 파일이 포함된 악성 저장소를 통해 사용자의 프로젝트 디렉토리를 소스 루트로 인식하게 만들면, 임의의 파이썬 스크립트를 실행하여 사용자 권한으로 코드를 실행할 수 있습니다.

💡 쉬운 설명

해커가 만든 특수한 파일이 들어있는 프로젝트 폴더를 열기만 해도, 컴퓨터가 해커의 명령어를 몰래 실행할 수 있는 보안 구멍입니다. 사용자의 권한을 그대로 사용하여 악성 프로그램을 돌릴 수 있어 위험합니다.

🇺🇸 원문 (English)

The Cortex MCP server (`neuro-cortex-memory`), a cross-platform persistent memory MCP, prior to version 3.17.1 treats the `CLAUDE_PROJECT_DIR` environment variable — automatically set by Claude Code to the currently open project directory — as a trusted Cortex developer checkout. When the `open_visualization` tool is invoked, `_find_dev_source()` resolves the user's active project directory as a candidate Cortex source root. The only validation performed by `_is_cortex_root()` is a check for the presence of an `mcp_server/` subdirectory and a `ui/unified-viz.html` file. An attacker who places these two marker files in a malicious repository can cause Cortex to execute an arbitrary `mcp_server/server/visualize_bootstrap.py` from that directory via `subprocess.run([sys.executable, ...])`, achieving code execution with the privileges of the victim's local user process. Version 3.17.1 fixes the issue.

📍 영향받는 시스템

Cortex MCP server (neuro-cortex-memory) version 3.17.1 미만

⚔️ 공격 벡터

악성 마커 파일(mcp_server/ 및 ui/unified-viz.html)이 포함된 저장소를 사용자가 열도록 유도하여 임의 코드 실행

🛡️ 대응 방법

Cortex MCP 서버를 버전 3.17.1 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전이 3.17.1 미만이면 취약한 상태이며, 3.17.1 이상이면 안전합니다.

Shell / Script
pip show neuro-cortex-memory 2>/dev/null | grep Version

💻 영향받는 소프트웨어

Claude Code