Skip to content
OpenAdvisories
High · 8.7 CVE-2026-55887 EUVD-2026-78684GHSA-r2xf-7jw5-pjg6GO-2026-5604

MCP Gateway: Argument injection via OCI image label YAML in Docker MCP Gateway

Published Sep 15, 2026 · Updated Sep 15, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
docker mcp-gateway >= 0.21.0, < 0.42.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/docker/mcp-gateway >= 0.21.0, < 0.42.2 0.42.2 GHSA-r2xf-7jw5-pjg6

Advisories 1

References