{
  "schema": "aidefend-secureflow-metadata-v1",
  "flow_id": "aidefend-research-sf0074-docker-mcp-gateway-oci-label-argument-injection",
  "title": "Docker MCP Gateway: Image Metadata Becomes Host-Mount Authority",
  "subtitle": "An image may describe its server without deciding its own host privileges.",
  "summary": "Docker MCP Gateway launches tool servers from container images. CVE-2026-55887 allowed attacker-controlled OCI image metadata to populate privileged runtime fields, which became docker run arguments. The disclosed path can mount the host and Docker socket and run as root. Docker fixed versions before 0.42.2; neither prompt filtering nor no-new-privileges repairs these creation-time grants.",
  "reviewed": true,
  "import_status": "curated-research",
  "ai_layers": [
    "tool-integrations-mcp",
    "ai-infrastructure"
  ],
  "risk_impact": [
    "system-compromise-rce"
  ],
  "affected_components": [
    "Docker MCP Gateway",
    "io.docker.server.metadata OCI label",
    "catalog.Server runtime configuration",
    "Docker engine"
  ],
  "source_research": {
    "provider": "Docker",
    "primary_url": "https://github.com/docker/mcp-gateway/security/advisories/GHSA-r2xf-7jw5-pjg6",
    "published": "2026-06-16",
    "note": "Source-grounded AIDEFEND curation. ATLAS annotations describe the supported mechanism and do not establish an official ATLAS case or unreported malicious intent."
  },
  "attack_steps": [
    {
      "id": "reference-attacker-image",
      "title": "Reference an Attacker-Controlled Image",
      "zhTitle": "引用攻擊者控制的映像檔",
      "summary": "The victim uses docker:// or a catalog snapshot derived from an image controlled by the attacker.",
      "zhSummary": "受測路徑透過 docker:// 或 catalog snapshot，引用攻擊者控制的映像檔。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": -960,
        "y": 0
      }
    },
    {
      "id": "read-oci-label",
      "title": "Read YAML from the OCI Metadata Label",
      "zhTitle": "讀取 OCI 中繼資料標籤中的 YAML",
      "summary": "The image supplies io.docker.server.metadata. This is image metadata admission, not an MCP response or skill parser.",
      "zhSummary": "映像檔提供 io.docker.server.metadata。這是映像檔中繼資料的處理邊界，不是 MCP 回應或技能解析器。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": -480,
        "y": 0
      }
    },
    {
      "id": "populate-runtime-fields",
      "title": "Populate Privileged Server Runtime Fields",
      "zhTitle": "填入高權限伺服器執行欄位",
      "summary": "Unrestricted decoding into catalog.Server lets the label set runtime fields such as Volumes, User and Command.",
      "zhSummary": "未限制欄位的解碼把資料填入 catalog.Server，使標籤能設定 Volumes、User、Command 等執行欄位。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "construct-docker-arguments",
      "title": "Construct docker run Arguments from Those Fields",
      "zhTitle": "將欄位組成 docker run 參數",
      "summary": "The Gateway turns those runtime values into Docker arguments rather than keeping them under defender policy.",
      "zhSummary": "Gateway 將這些值轉成 Docker 參數，而非由防禦方政策決定。",
      "tactic": null,
      "technique": null,
      "layout": {
        "x": 480,
        "y": 0
      }
    },
    {
      "id": "grant-host-mounts",
      "title": "Start a Container with Host Access",
      "zhTitle": "以主機存取權啟動容器",
      "summary": "The demonstrated settings can mount / as /host, expose the Docker socket and run as UID 0, enabling host code execution. no-new-privileges does not revoke privileges granted when the container is created.",
      "zhSummary": "來源展示的設定可將 / 掛到 /host、暴露 Docker socket，並以 UID 0 執行，因而取得主機程式執行能力。no-new-privileges 不會撤回建立容器時已授予的權限。",
      "tactic": "AML.TA0005",
      "technique": "AML.T0050",
      "layout": {
        "x": 960,
        "y": 0
      }
    }
  ],
  "threat_refs": [
    {
      "id": "AML.T0050",
      "name": "Command and Scripting Interpreter"
    }
  ]
}
