Skip to content
RCE Write-up Intermediate

CVE-2026–5029 (Unpatched)Case Study Unauthenticated Remote Code

The Code Runner MCP Server, when run with HTTP transport, exposes an unauthenticated JSON-RPC endpoint that allows anyone to invoke the run-code tool, which executes arbitrary code via child_process.exec(). An attacker could run commands with the privileges of the server process.

phantom_hat Follow

Published on medium.com

This Case Study focuses on CVE-2026–5029With CVSS Score 8.7, a Remote Code Execution vulnerability discovered in Code Runner MCP Server, an open-source Model Context Protocol server that allows AI agents and LLM-integrated tools to execute arbitrary source code snippets across multiple language interpreters. The…

phantom_hat, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The HTTP transport mode exposes the MCP endpoint without any authentication, allowing unauthenticated users to invoke the run-code tool which executes arbitrary code.

Impact

An unauthenticated attacker could execute arbitrary commands with the privileges of the server process, potentially leading to full system compromise.

What the attacker needed

Server running with --transport http; Network access to port 3088

The fix

The vulnerability is unpatched; recommended fixes include adding authentication to the HTTP endpoint and sandboxing code execution.

How it was found

  1. Start the server with the HTTP transport flag, which binds to port 3088.
  2. Connect to the /mcp endpoint without credentials and list available tools.
  3. Invoke the run-code tool with arbitrary code and a language identifier.
  4. Observe the output of the executed command, confirming code execution.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This server is meant to let AI assistants run code snippets. When started in a network mode, it listens on a port without asking for any password. Anyone who can reach that port can send it code to run, and it will run that code on the machine, just like typing commands into a terminal.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by phantom_hat

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.