🔍 CVE-2026-55582

8.4
CVSS Score
HIGH
2026-08-25
2026-09-09 21:07
✅ 완료

🇰🇷 한글 설명

mcp-shell 0.6.0 미만 버전에서 Git 실행 시 셸 메타문자 필터링 미흡 및 인자 정책 부재로 인해 발생하는 취약점입니다. 공격자가 Git의 alias 기능을 악용하여 임의의 OS 명령어를 실행할 수 있으며, 기본 Docker 설정에서 권한 탈취가 가능합니다.

💡 쉬운 설명

보안 프로그램의 검사 규칙을 우회하여 해커가 컴퓨터에 몰래 명령어를 입력할 수 있는 결함입니다. Git이라는 도구를 이용해 허용되지 않은 위험한 동작을 수행할 수 있습니다.

🇺🇸 원문 (English)

mcp-shell is an MCP server for running shell commands securely, auditably, and on demand. Prior to 0.6.0, the default security.yaml allows /usr/bin/git, while security.go omits ! from containsShellMetacharacters and containsDangerousShellConstructs and applies no per-executable argument policy. A caller of the shell_exec MCP tool can provide the command argument /usr/bin/git -c alias.pwn=!<arbitrary-command>, causing Git to create a shell alias and execute arbitrary OS commands as the mcp-shell process user. The default Docker image runs as mcpuser with Git installed and secure mode enabled, so the bypass is exploitable in the default deployment without additional authentication beyond MCP connectivity. This issue is fixed in version 0.6.0.

📍 영향받는 시스템

mcp-shell version < 0.6.0

⚔️ 공격 벡터

shell_exec MCP 도구에 Git의 alias 설정을 포함한 특수 인자를 전달하여 명령 실행

🛡️ 대응 방법

mcp-shell을 0.6.0 버전 이상으로 업데이트

🔧 검증 코드

출력된 버전이 0.6.0 미만(예: 0.5.x)이면 취약한 상태이며, 0.6.0 이상이면 안전합니다.

Shell / Script
mcp-shell --version 2>/dev/null | grep -E '0\.[0-5][0-9]' || echo 'Not vulnerable or version not found'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Docker