🔍 CVE-2026-27735

6.5
CVSS Score
MEDIUM
2026-02-26
2026-04-14 00:44
✅ 완료

🇰🇷 한글 설명

mcp-server-git 2026.1.14 이전 버전에서 git_add 도구가 파일 경로를 검증하지 않아 '../' 시퀀스를 포함한 경로로 저장소 외부 파일을 Git 인덱스에 스테이징할 수 있습니다. GitPython의 repo.index.add()를 사용하기 때문에 Git CLI의 경계 검사를 우회할 수 있어 발생하는 취약점입니다.

💡 쉬운 설명

Git 도구가 파일을 추가할 때 경로를 제대로 확인하지 않아 허용된 폴더 밖의 파일도 추가할 수 있는 문제입니다. 이를 악용하면 저장소 외부의 민감한 파일이 Git에 포함될 수 있습니다.

🇺🇸 원문 (English)

Model Context Protocol Servers is a collection of reference implementations for the model context protocol (MCP). In mcp-server-git versions prior to 2026.1.14, the git_add tool did not validate that file paths provided in the files argument were within the repository boundaries. Because the tool used GitPython's repo.index.add() rather than the Git CLI, relative paths containing `../` sequences that resolve outside the repository were accepted and staged into the Git index. Users are advised to upgrade to 2026.1.14 or newer to remediate this issue.

📍 영향받는 시스템

mcp-server-git 2026.1.14 미만 버전

⚔️ 공격 벡터

../ 경로 시퀀스를 포함한 파일 경로를 git_add 도구에 전달하여 저장소 경계 외부 파일을 스테이징

🛡️ 대응 방법

mcp-server-git을 2026.1.14 이상 버전으로 업그레이드

🔧 검증 코드

출력된 Version 값이 2026.1.14 이상이면 패치 적용 완료, 미만이거나 출력 없으면 취약한 버전

Shell / Script
pip show mcp-server-git 2>/dev/null | grep -E '^Version:'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Git