Skip to main content
← All vulnerabilities
CVE-2026-55071PYSEC-2026-3700GHSA-49M4-VP58-WGC9

MCP-for-Stata: Stata Command Injection via Unsanitized `package` in `ado_package_install`

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.19.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

MCP-for-Stata is a MCP server for integrating Stata into agent loops with a safety-first design. Prior to version 1.19.0, the ado_package_install MCP tool in stata-mcp concatenates user-controlled input directly into a Stata command string without any validation or sanitization. An attacker who can invoke the MCP tool or the equivalent Python API can embed newline characters in the package argument to inject arbitrary Stata commands. Because Stata supports a shell escape command, this leads to full OS-level arbitrary command execution (RCE) under the account running the Stata-MCP server. The tool is registered in the default all profile, so no non-default configuration is required. This issue has been patched in version 1.19.0.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • SepineTam mcp-for-stata

    fixed in 1.19.0

  • stata-mcpPyPI

    fixed in 1.19.0

References 2

GitHub · SepineTam/mcp-for-stata