🇰🇷 한글 설명
MCP Memory Keeper 0.13.0 미만 버전에서 context_import 함수가 사용자 입력 경로를 검증 없이 fs.readFileSync에 전달하여 발생하는 경로 탐색 취약점입니다. 공격자는 상위 디렉토리 이동(..)이나 절대 경로를 사용하여 서버 프로세스가 읽을 수 있는 임의의 파일을 읽고 그 내용을 세션으로 가져올 수 있습니다.
💡 쉬운 설명
AI 코딩 도우미의 메모리 관리 기능에 허점이 있어, 공격자가 시스템의 중요한 비밀번호나 설정 파일을 몰래 읽어갈 수 있는 문제입니다. 파일 경로를 조작하여 허용되지 않은 영역까지 접근할 수 있는 보안 결함입니다.
🇺🇸 원문 (English)
MCP Memory Keeper is an MCP server for persistent context management in AI coding assistants. Prior to 0.13.0, context_import in src/index.ts passes the caller-controlled filePath directly to fs.readFileSync without restricting the path to an export directory. An MCP client, including an LLM agent induced to call the tool, can use ../ traversal or an absolute path to target any file readable by the server process. A valid JSON file is parsed and imported into the caller's session, allowing its full contents to be retrieved through context_get or context_export, while JSON.parse errors for non-JSON files can return leading file bytes in a SyntaxError message. The two disclosure modes can expose other exported sessions, JSON credentials or service-account files, environment files, and portions of SSH keys or other local files. This issue is fixed in version 0.13.0.
📍 영향받는 시스템
MCP Memory Keeper version < 0.13.0
⚔️ 공격 벡터
context_import 도구에 ../ 또는 절대 경로를 포함한 조작된 filePath를 전달하여 임의 파일 읽기 수행
🛡️ 대응 방법
MCP Memory Keeper를 0.13.0 이상의 최신 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 0.13.0 미만이면 취약한 상태이며, 0.13.0 이상이면 안전합니다.
npm list -g mcp-memory-keeper 2>/dev/null | grep -E 'mcp-memory-keeper@'
📊 CVSS Vector String
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
💻 영향받는 소프트웨어
Windows iSCSI Target Service