🇰🇷 한글 설명
MCP Gateway 0.21.0부터 0.42.2 버전 사이에서 발생하는 취약점으로, 공격자가 제어하는 OCI 이미지 레이블을 검증 없이 처리하여 발생합니다. 악의적인 이미지를 실행할 경우 호스트 파일 시스템 마운트나 Docker 소켓 접근을 통해 호스트에서 임의의 코드를 실행할 수 있습니다.
💡 쉬운 설명
나쁜 의도를 가진 사용자가 만든 이미지를 실행하면, 그 이미지가 내 컴퓨터의 중요한 파일이나 권한을 몰래 가져갈 수 있는 문제입니다. 이로 인해 해커가 내 컴퓨터를 완전히 장악할 위험이 있습니다.
🇺🇸 원문 (English)
MCP Gateway allows easy and secure running and deployment of MCP servers. From 0.21.0 until 0.42.2, Docker MCP Gateway YAML-unmarshalled the attacker-controlled io.docker.server.metadata OCI image label into the broad catalog.Server structure for direct docker:// references and catalog snapshot imports in pkg/oci/self_contained.go and pkg/workingset/workingset.go. Runtime-shaping fields including Volumes, User, and ExtraHosts were then appended to the docker run argument vector without an origin allowlist, allowing a malicious image author to request host filesystem or Docker socket mounts and UID 0 execution when a victim selected or pulled the image. This container-creation-time boundary bypass can execute arbitrary code on the host and is not prevented by no-new-privileges because no in-container privilege escalation is required. This issue is fixed in version 0.42.2.
📍 영향받는 시스템
MCP Gateway versions 0.21.0 to 0.42.2
⚔️ 공격 벡터
악의적인 OCI 이미지 레이블을 포함한 이미지를 사용자가 선택하거나 풀(pull)하도록 유도하여 컨테이너 생성 시 호스트 자원 탈취
🛡️ 대응 방법
MCP Gateway를 최신 버전인 0.42.2 이상으로 업데이트하십시오.
🔧 검증 코드
명령어 결과에 취약한 버전 범위가 출력되면 해당 버전이 설치되어 있는 상태입니다.
mcp-gateway --version 2>/dev/null | grep -E '0\.(2[1-9]|[3-4][0-1]\.|42\.0|42\.1)'