CVE-2025-68145 mcp-server-git has missing path validation when using --repository flag
mcp-server-git이 --repository 플래그를 사용할 때 경로 유효성 검사를 누락했습니다.
설명
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.
2025.12.17 이전의 mcp-server-git 버전에서, 서버가 특정 저장소 경로로 작업을 제한하기 위해 --repository 플래그로 시작되었을 때, 후속 도구 호출에서 repo_path 인수가 실제로 그 구성된 경로 내에 있는지 검증하지 않았습니다. 이렇게 하면 도구 호출이 서버 프로세스에 액세스할 수 있는 다른 저장소에서 작동할 수 있습니다. 수정은 설정된 저장소와 요청된 경로(심 링크 다음)를 모두 확인하고 git 작업을 실행하기 전에 요청된 경로가 허용된 저장소 내에 있는지 확인하는 경로 유효성 검사를 추가합니다. 사용자는 릴리스 시 2025.12.17로 업그레이드하여 이 문제를 해결하는 것이 좋습니다.
영향 받는 제품 제품 1개
-
해결 버전 있음
modelcontextprotocol
servers
영향 받는 버전
- 2025.12.17 미만
해결 버전
- 2025.12.17 이상