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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-88"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55887.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0.21.0"
},
{
"fixed": "0.42.2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "306d2d94a3b526f43281313321bf784f2d46a7fe"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "439b2200d9e26a4ff414aeb043785df45a78422b"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v0.42.2",
"range": [
{
"fixed": "439b2200d9e26a4ff414aeb043785df45a78422b"
}
],
"source": "REFERENCES_TAG"
}
]
}