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

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-06-18T13:05:06.000Z
- Modified: 2026-09-30T17:51:56.193Z
- Also known as: GHSA-r2xf-7jw5-pjg6, GO-2026-5604
- Weaknesses: CWE-88
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- docker mcp-gateway: >= 0.21.0, < 0.42.2
- github.com/docker/mcp-gateway (Go): from 0.21.0 before 0.42.2

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:4.0 High `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

- <https://github.com/docker/mcp-gateway/security/advisories/GHSA-r2xf-7jw5-pjg6> (advisory, web)
- <https://github.com/docker/mcp-gateway/pull/498>
- <https://github.com/docker/mcp-gateway/commit/306d2d94a3b526f43281313321bf784f2d46a7fe>
- <https://github.com/docker/mcp-gateway/commit/439b2200d9e26a4ff414aeb043785df45a78422b>
- <https://github.com/docker/mcp-gateway/releases/tag/v0.42.2>
- <https://github.com/docker/mcp-gateway> (package)

## Sources

- CVE List: [CVE-2026-55887](https://www.cve.org/CVERecord?id=CVE-2026-55887), CVE Terms of Use, modified 2026-09-15
- GitHub Advisory Database: [GHSA-r2xf-7jw5-pjg6](https://github.com/advisories/GHSA-r2xf-7jw5-pjg6), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5604](https://pkg.go.dev/vuln/GO-2026-5604), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-55887](https://nvd.nist.gov/vuln/detail/CVE-2026-55887), Public domain, modified 2026-09-30

---

Page: https://cve.day/CVE-2026-55887 · Whole record: https://cve.day/CVE-2026-55887.json · Rebuilt by cve.day 2026-11-25T22:59:38.560Z
