kcve.ai취약점 정보 · 내 자산 확인

CVE-2025-68144 mcp-server-git argument injection in git_diff and git_checkout functions allows overwriting local files

git_diff와 git_checkout 함수에서 mcp-server-git 인수를 삽입하면 로컬 파일을 덮어쓸 수 있습니다.

설명

In mcp-server-git versions prior to 2025.12.17, the git_diff and git_checkout functions passed user-controlled arguments directly to git CLI commands without sanitization. Flag-like values (e.g., `--output=/path/to/file` for `git_diff`) would be interpreted as command-line options rather than git refs, enabling arbitrary file overwrites. The fix adds validation that rejects arguments starting with - and verifies the argument resolves to a valid git ref via rev_parse before execution. Users are advised to update to 2025.12.17 resolve this issue when it is released.

2025.12.17 이전 버전에서 git_diff 와 git_checkout 함수는 사용자가 제어하는 인자를 제균 없이 git CLI 명령으로 직접 전달했습니다. 플래그와 같은 값(예를 들어, `git_diff`의 경우 `--output=/path/to/file`)은 git refs가 아닌 명령행 옵션으로 해석되어 임의의 파일을 덮어쓸 수 있게 한다. fix는 - 로 시작하는 인수를 거부하는 유효성 검사를 추가하고, 실행 전에 rev_parse를 통해 유효한 git ref로의 유효성을 검사합니다. 사용자는 2025.12.17로 업데이트하여 이 문제가 릴리스될 때 해결하는 것이 좋습니다.

영향 받는 제품 제품 1개

  • modelcontextprotocol

    servers

    해결 버전 있음

    영향 받는 버전

    • 2025.12.17 미만

    해결 버전

    • 2025.12.17 이상

참고 자료 1건

‹ 목록

점검 지원 범위 문의

도입 문의