CVE-2026-55887
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/docker/mcp-gatewayGo | >= 0.21.0, < 0.42.2 | 0.42.2 |
Affected products
2- Range: >= 0.21.0, < 0.42.2
- osv-coordsRange: < 0.0.20260723T184607-160000.1.1
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-r2xf-7jw5-pjg6ghsaADVISORY
- github.com/docker/mcp-gateway/security/advisories/GHSA-r2xf-7jw5-pjg6nvdWEB
- github.com/docker/mcp-gateway/commit/306d2d94a3b526f43281313321bf784f2d46a7fenvd
- github.com/docker/mcp-gateway/commit/439b2200d9e26a4ff414aeb043785df45a78422bnvd
- github.com/docker/mcp-gateway/pull/498nvd
- github.com/docker/mcp-gateway/releases/tag/v0.42.2nvd
News mentions
1- ZDI-26-363: Docker MCP Plugin OCI Image Label Parsing Argument Injection Remote Code Execution VulnerabilityZero Day Initiative · Jun 24, 2026