Vulnerability · Published Sep 15, 2026 · Assigned by GitHub_M

CVE-2026-55887MCP Gateway: Argument injection via OCI image label YAML in Docker MCP Gateway

High 8.7

In plain English

A high-severity argument injection in mcp-gateway from docker. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 13% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.7High
Exploit odds (30 days)0.2%top 87.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/docker/mcp-gateway0.42.2GHSA-r2xf-7jw5-pjg6
Gogithub.com/docker/mcp-gateway0.42.2GO-2026-5604

Affected products (as reported)

VendorProductVersions
docker mcp-gateway >= 0.21.0, < 0.42.2

Weakness: CWE-88 · Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

References