Ongoing

A scan target became a shell command in three MCP servers

Three MCP servers built shell strings from their own tool parameters, so a scan target or a project name arrived as a command. VulnCheck published all three advisories on 27 October, and none lists a fixed version.

Logged 28 Oct 2026

The parameter was the command

Three MCP servers assembled shell commands from their own tool parameters, so a scan target or a project name supplied by the model arrived at the shell as an executable string rather than as data. None of the three sanitises them. VulnCheck published all three advisories on 27 October. Each is classified CWE-78 and scored 8.5 under CVSS 4.0.

In esp-mcp, the parameters target, port, project_path and project_name go straight into asyncio.create_subprocess_shell, with nothing between the tool call and the shell. Kali-GPT does the same, because its execute_tool() calls subprocess.run with shell=True and passes the scanner arguments through unresolved. hagent hands arguments to arduino-cli and idf.py through a shell as well, per VulnCheck's advisories. All three run the injected command as the MCP server user. Same shape, three times.

The agent was asked to scan something

An MCP server is the layer that turns a model's request into a local action, and here that action was a command assembled from fields the model or its caller fills in. A field is an instruction to the shell. Whoever controls one controls what the shell runs, which is why the tool schema is the attack surface.

The shape is familiar from earlier agent tooling: a request to scan a host, flash a board or run a project became a string the shell parsed. None of the three advisories documents exploitation. The public record ends at the flaw itself.

No fixed version

The three records are CVE-2026-117567, CVE-2026-117569 and CVE-2026-117573, and each names a commit as the last affected version rather than a release boundary. No patch exists. Until a maintainer ships one, the exposure stays with whoever deployed the server, and the advisories offer no workaround.

Log take: A tool that shells out with its own inputs is a formatter with a command line attached. Three servers were flagged the same day. A CVE without a patch leaves the decision with whoever deploys them. (Interpretation; three advisories from one CNA, no exploitation reported.)

Sources

Research

Thread

  • Relates to: Configure a flow, run a command

    That entry covers a tool that ran a command assembled from its own configuration; these three assemble one from the parameters the model supplies.

  • Relates to: Sandboxed until the first semicolon

    Same class of bug: text that should have been data reached a shell, and the boundary held only until the parser read it.