🔍 CVE-2025-68145

9.1
CVSS Score
CRITICAL
2025-12-17
2026-09-30 23:10
✅ 완료

🇰🇷 한글 설명

mcp-server-git 2025.12.17 이전 버전에서 --repository 플래그로 특정 저장소 경로로 제한하도록 설정했을 때, 후속 도구 호출에서 경로 검증을 수행하지 않아 다른 저장소에 접근할 수 있는 경로 탈출 취약점입니다. symlink 추적 및 경로 검증 기능이 추가된 버전으로 업그레이드하면 해결됩니다.

💡 쉬운 설명

Git 서버가 특정 폴더만 사용하도록 잠금장치를 했는데, 다른 폴더 경로를 지정하면 그 잠금을 우회하고 다른 저장소에 접근할 수 있습니다. 최신 버전으로 업데이트하면 이 문제가 해결됩니다.

🇺🇸 원문 (English)

In mcp-server-git versions prior to 2025.12.17, when the server is started with the --repository flag to restrict operations to a specific repository path, it did not validate that repo_path arguments in subsequent tool calls were actually within that configured path. This could allow tool calls to operate on other repositories accessible to the server process. The fix adds path validation that resolves both the configured repository and the requested path (following symlinks) and verifies the requested path is within the allowed repository before executing any git operations. Users are advised to upgrade to 2025.12.17 upon release to remediate this issue.

📍 영향받는 시스템

mcp-server-git < 2025.12.17

⚔️ 공격 벡터

제한된 저장소 경로를 벗어난 다른 저장소 경로를 repo_path 인수로 지정하여 git 작업 실행

🛡️ 대응 방법

mcp-server-git을 2025.12.17 이상 버전으로 즉시 업그레이드

🔧 검증 코드

설치된 버전이 2025.12.17 이상이면 안전하며, 그 이하면 취약점에 노출된 상태

Shell / Script
pip show mcp-server-git 2>/dev/null | grep Version || npm list mcp-server-git 2>/dev/null | grep mcp-server-git

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Git