CVE-2026-55071 MCP-for-Stata: Stata Command Injection via Unsanitized `package` in `ado_package_install`
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
Description
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi stata-mcp(PyPI) | < 1.19.0; = 0.1.0; = 1.3.2; = 1.3.3 +92 more | 1.19.0 | Fixed |
| SepineTam mcp-for-stata | = < 1.19.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi stata-mcp(PyPI) | < 1.19.0 | 1.19.0 |
| pypi stata-mcp(PyPI) | = 0.1.0 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.10.0 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.10.1 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.10.2 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.11.0 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.11.1 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.12.0 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.12.1 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.0 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.1 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.10 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.11 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.12 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.13 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.14 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.15 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.16 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.17 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.18 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.19 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.2 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.20 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.21 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.22 | No fix listed |
Show 72 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi stata-mcp(PyPI) | = 1.13.23 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.24 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.25 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.26 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.27 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.28 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.29 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.3 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.30 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.31 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.32 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.33 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.34 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.35 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.36 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.37 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.38 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.39 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.4 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.40 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.41 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.42 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.5 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.6 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.7 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.8 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.13.9 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.14.0 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.14.1 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.14.2 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.14.3 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.15.0 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.15.1 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.16.0 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.16.1 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.16.2 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.16.3 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.17.0 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.17.1 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.17.2 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.17.3 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.18.0 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.18.1 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.18.2 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.3.10 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.3.2 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.3.3 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.3.4 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.3.5 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.3.6 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.3.7 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.3.8 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.4.0 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.4.1 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.5.1 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.5.2 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.5.3 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.6.0 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.6.1 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.6.2 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.6.3 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.7.0 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.7.1 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.7.2 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.7.3 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.7.4 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.8.0 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.8.1 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.8.2 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.9.0 | No fix listed |
| pypi stata-mcp(PyPI) | = 1.9.1 | No fix listed |
| SepineTam mcp-for-stata | = < 1.19.0 | No fix listed |
References
- https://github.com/SepineTam/mcp-for-stata/security/advisories/GHSA-49m4-vp58-wgc9 exploit vendor-advisory
- github.com product
- https://github.com/SepineTam/mcp-for-stata/releases/tag/v1.19.0
- pypi.org product
- github.com vendor-advisory
- nvd.nist.gov vendor-advisory
- ENISA EUVD EUVD-2026-83921 third-party-advisory