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.
Published: 2026-09-15
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

MCP Gateway for Docker reads OCI image labels and incorporates them into the server configuration without an allowlist. This flaw caused fields such as Volumes, User, and ExtraHosts to be appended directly to the docker run command vector. An attacker controlling the image label could therefore request the host filesystem or Docker socket to be mounted, and the container could run as UID 0. This bypass of the container‑creation boundary enables the attacker to execute arbitrary code on the host, equivalent to host‑level compromise. The flaw is not mitigated by the no‑new‑privileges setting because no in‑container privilege escalation is necessary; the escape occurs during container launch.

Affected Systems

All users running Docker MCP Gateway version 0.21.0 through 0.42.1 are affected. The vulnerability was fixed in release 0.42.2, so any instance using the earlier range without the patch is vulnerable.

Risk and Exploitability

With a CVSS score of 8.7 the vulnerability is considered high severity. The EPSS score is currently unavailable, but the lack of an official KEV listing does not mitigate the risk; the flaw remains exploitable via a malicious OCI image pull can achieve host‑level code execution by supplying an image with crafted labels; no special privileges or additional network access are required beyond the ability to pull the image.

Generated by OpenCVE AI on September 16, 2026 at 02:06 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Docker MCP Gateway to version 0.42.2 or later, which removes the unchecked injection path.
  • If immediate upgrading is infeasible, restrict image sources to trusted registries and audit image labels for dangerous fields before pulling.
  • Monitor container launch logs for unexpected host mounts or privileged flags, and enforce ingress policies that deny such configurations unless explicitly permitted.

Generated by OpenCVE AI on September 16, 2026 at 02:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-r2xf-7jw5-pjg6 Docker MCP Gateway: Argument injection via OCI image label YAML
History

Tue, 15 Sep 2026 19:00:00 +0000

Type Values Removed Values Added
First Time appeared Docker
Docker mcp Gateway
Vendors & Products Docker
Docker mcp Gateway

Tue, 15 Sep 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 15 Sep 2026 16:00:00 +0000

Type Values Removed Values Added
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.
Title MCP Gateway: Argument injection via OCI image label YAML in Docker MCP Gateway
Weaknesses CWE-88
References
Metrics cvssV4_0

{'score': 8.7, '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'}


Subscriptions

Docker Mcp Gateway
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-15T18:02:09.186Z

Reserved: 2026-06-17T16:59:42.760Z

Link: CVE-2026-55887

cve-icon Vulnrichment

Updated: 2026-09-15T17:45:44.551Z

cve-icon NVD

Status : Received

Published: 2026-09-15T16:17:16.667

Modified: 2026-09-15T19:17:23.150

Link: CVE-2026-55887

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-16T02:15:18Z

Weaknesses
  • CWE-88

    Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')