NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Other MCP servers and tools

CVE-2026-106765: @rog0x/mcp-docker-tools: executes arbitrary code via the handleImageList function

highCVSS 3.1 7.5GHSA-fq6x-j3g6-xx83

@rog0x/mcp-docker-tools 1.0.1 and earlier has a command injection in handleImageList. The docker_image_list filter argument is appended unescaped to a shell command, so shell metacharacters in it run arbitrary commands on the machine hosting the MCP server. There is no patched version.

Published Oct 23, 2026 · Updated Oct 30, 2026 · Analysis Nov 6, 2026

What an attacker can do

In src/tools/image-list.ts, handleImageList builds a docker images command string from the tool's filter argument and runs it with child_process.execSync. Nothing escapes the filter, so characters such as ;, $( or a backtick end the Docker command and start another (CWE-77).

An MCP server runs with the privileges of the user who started it. The filter value comes from the AI model's tool call, so an attacker does not need direct access to the server. The reporter of the sibling package issue notes that input can arrive through indirect prompt injection: a web page, issue or document the model reads can steer it to call the tool with a malicious filter. CVSS 3.1 rates this as network-reachable, high complexity, with user interaction (AV:N/AC:H/UI:R).

The result is code execution as the developer or CI user running the agent. That gives access to source code, SSH keys, cloud credentials and the Docker daemon itself. A Docker-capable user can usually reach root on the host through the daemon.

Who is affected

Affected: @rog0x/mcp-docker-tools 1.0.1 and earlier; the advisory lists no fixed version, so every published release is in scope. Check whether it is installed locally or configured in an MCP client:

npm ls -g @rog0x/mcp-docker-tools

Also search your MCP client configuration files for the package name, since npx may fetch it on each start.

@rog0x/mcp-docker-tools

Ecosystem
npm
Affected
<= 1.0.1
Fixed in
No patched version yet
Check
npm ls @rog0x/mcp-docker-tools

How to fix it

There is no patched version (patched is null in the package data) and no workaround is documented. The vendor was notified through a public GitHub issue and no response is recorded.

Practical steps:

  • Remove the server from your MCP client configuration and uninstall the package.
  • If you must keep it, run it in a container or VM without credentials, and do not let the agent read untrusted content in the same session.
  • The reporter's suggested code fix is to pass arguments as an array to execFile or spawn instead of building a shell string.

How to tell if you were hit

The sources give no log lines. From the mechanism:

  • Review MCP client logs for docker_image_list calls whose filter contains ;, &&, |, $( or backticks.
  • Look for unexpected child processes (shells, curl, wget) of the Node process running the server.
  • Check shell history and outbound connections from that host around the time of agent sessions.
  • Beam records agent shell commands and MCP tool calls, and its rules flag risky ones, so a malicious docker_image_list call would show up in its log.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

An issue in @rog0x/mcp-docker-tools 1.0.1 allows a remote attacker to execute arbitrary code via the handleImageList function.

Credited to stillmarcus24.

Questions

Is there a fixed version of @rog0x/mcp-docker-tools?

No. The record lists no fixed version and no vendor response. Remove or isolate the package.

How would an attacker reach the filter argument?

Through the model's tool call. Prompt injection in content the agent reads could make the model pass a malicious filter. The CVSS vector sets user interaction as required.

Are other rog0x MCP packages affected?

The reporter says the sibling package mcp-git-tools has the same issue class. This entry covers only mcp-docker-tools.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Other MCP servers and tools vulnerabilities

All Other MCP servers and tools entries