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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.7
- **CVSS:** 8.7 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: Active; Confidentiality impact: High; Integrity impact: High; Availability impact: High; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 8, 2026-11-28)
- **CWE:** CWE-88
- **Aliases:** GHSA-r2xf-7jw5-pjg6, GO-2026-5604
- **Published:** 2026-06-18T13:05:06.000Z
- **Modified:** 2026-09-30T17:51:56.193Z

## Who should check

- Projects that depend on Go package github.com/docker/mcp-gateway (\>= 0.21.0, \< 0.42.2)
- Anyone running docker mcp-gateway \>= 0.21.0, \< 0.42.2

## 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 and fixed versions

- Go `github.com/docker/mcp-gateway`: affected \>= 0.21.0, \< 0.42.2; fixed 0.42.2 (osv)
- docker mcp-gateway: \>= 0.21.0, \< 0.42.2 (cvelist)

## Mitigation

- Upgrade github.com/docker/mcp-gateway to 0.42.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-55887. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-55887.md
Affected: github.com/docker/mcp-gateway >= 0.21.0, < 0.42.2
Fixed in: 0.42.2

Steps:
1. Search this machine and project for github.com/docker/mcp-gateway (Go), docker mcp-gateway: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-55887 being exploited?

There is no confirmed exploitation: CVE-2026-55887 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-55887?

High: CVSS 8.7 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-55887?

github.com/docker/mcp-gateway \>= 0.21.0, \< 0.42.2.

### Is there a fix for CVE-2026-55887?

Yes. Fixed in 0.42.2. Upgrade github.com/docker/mcp-gateway to 0.42.2 or later.

### How do I check if I'm affected by CVE-2026-55887?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/docker/mcp-gateway/security/advisories/GHSA-r2xf-7jw5-pjg6>
- patch: <https://github.com/docker/mcp-gateway/pull/498>
- patch: <https://github.com/docker/mcp-gateway/commit/306d2d94a3b526f43281313321bf784f2d46a7fe>
- patch: <https://github.com/docker/mcp-gateway/commit/439b2200d9e26a4ff414aeb043785df45a78422b>
- other: <https://github.com/docker/mcp-gateway/releases/tag/v0.42.2>
- other: <https://github.com/docker/mcp-gateway>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-55887>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-r2xf-7jw5-pjg6> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-5604> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-55887> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-55887>
