Command Injection Vulnerability in MCP File Reader

This repository demonstrates a critical command injection vulnerability in a Python MCP (Model Context Protocol) server implementation. The vulnerability allows attackers to execute arbitrary shell…

Local serverstdio

What is the Command Injection Vulnerability in MCP File Reader MCP Server?

Command Injection Vulnerability in MCP File Reader is an MCP project maintained in the eliran79/vulnerable-file-reader-server repository. The maintainer describes its purpose as “This repository demonstrates a critical command injection vulnerability in a Python MCP (Model Context Protocol) server implementation. The vulnerability allows attackers to execute arbitrary shell…”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using /ABSOLUTE/PATH/TO/uv. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

How to install the Command Injection Vulnerability in MCP File Reader MCP Server

{
  "mcpServers": {
    "file-reader": {
      "command": "/ABSOLUTE/PATH/TO/uv",
      "args": [
        "--directory",
        "/data/git/file_reader_server",
        "/usr/bin/uv",
        "run,--with,mcp,mcp,run,main.py"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.