Skip to content
HighVulnerability

CVE-2026-55887: MCP Gateway container creation boundary bypass via OCI image metadata label

Identifier
CVE-2026-55887
Published
Record updated
View JSON
Affected
  • github.com/docker/mcp-gateway >= 0.21.0, < 0.42.2
Fixed in
0.42.2

Summary

Docker MCP Gateway, from 0.21.0 through 0.42.2, parsed the attacker-controlled io.docker.server.metadata OCI image label into the catalog.Server structure without validation, in pkg/oci/self_contained.go and pkg/workingset/workingset.go. Fields such as Volumes, User and ExtraHosts were then passed to docker run without an origin allowlist, so a malicious image author could request host filesystem or Docker socket mounts and UID 0 execution when a victim selected or pulled the image. The flaw bypasses the container-creation boundary and can execute arbitrary code on the host, and no-new-privileges does not prevent it.

Mitigation

Fixed in version 0.42.2.