MCP-for-Stata: Stata Command Injection via Unsanitized `package` in `ado_package_install`
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| SepineTam | mcp-for-stata | before 1.19.0 | 1.19.0 | Patch available | CNA |
| — | stata-mcp (PyPI) | before 1.19.0 | 1.19.0 | Patch available | GHSA-49m4-vp58-wgc9 |
- mcp-for-stata VendorSepineTam Affected before 1.19.0 Fixed in 1.19.0 Patch available CNA
- stata-mcp (PyPI) Vendor— Affected before 1.19.0 Fixed in 1.19.0 Patch available GHSA-49m4-vp58-wgc9
Remediation
- Fix · CNA mcp-for-stata (SepineTam) Fixed in 1.19.0
- Fix · GHSA-49m4-vp58-wgc9 stata-mcp (PyPI) Fixed in 1.19.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-55071
- 2026-10-03 Alias added: GHSA-49m4-vp58-wgc9
References
More SepineTam vulnerabilities
- TI-2026-35211 MCP-for-Stata: Command injection via log_file_name parameter in Stata command wrapper CVSS 4.0CRITICAL 9.3
Sources
- CVE-2026-55071 · CVE Program
- CVE-2026-55071 · NVD
- FIRST EPSS
- GHSA-49m4-vp58-wgc9 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences