CVE-2026-55071
HighCVSS 8.4Exploitation Probability (EPSS)
Low risk15th percentile - higher than 15% of all known CVEs
Summary
In MCP-for-Stata 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.
Risk Assessment
The vulnerability allows an attacker to execute arbitrary system commands under the account running the Stata-MCP server. This poses a critical system takeover risk, especially since the tool is registered in the default all profile.
Recommendation
Upgrade MCP-for-Stata to version 1.19.0 or later. Until patched, restrict access to the ado_package_install tool to trusted users only.
Other vulnerabilities in MCP-for-Stata
Original NVD description (English source)
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.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

