CVE-2026-55071
HIGH 8.4CVSS 3.1MCP-for-Stata: Stata Command Injection via Unsanitized `package` in `ado_package_install`
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.
- Published
- 21 Sep 2026
- Last modified
- 24 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-94
- Also known as
- GHSA-49m4-vp58-wgc9PYSEC-2026-3700
- Sources
- NVDJSONOSV GHSA-49m4-vp58-wgc9JSONOSV PYSEC-2026-3700JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | stata-mcp | < 1.19.0 | 1.19.0 |
References
- https://github.com/SepineTam/mcp-for-stata/releases/tag/v1.19.0 · WEB
- https://github.com/SepineTam/mcp-for-stata/security/advisories/GHSA-49m4-vp58-wgc9 · WEB
- https://github.com/SepineTam/mcp-for-stata · PACKAGE
- https://pypi.org/project/stata-mcp · PACKAGE
- https://github.com/advisories/GHSA-49m4-vp58-wgc9 · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-55071 · ADVISORY
History
- 25 Nov 2026 21:21 UTC · NVD: first stored (published 21 Sep 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 19 Aug 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 12 Aug 2026)