{"id":"CVE-2026-55071","published":"2026-09-21T14:09:30Z","modified":"2026-09-21T14:56:37Z","title":"MCP-for-Stata: Stata Command Injection via Unsanitized `package` in `ado_package_install`","vendor":"SepineTam","product":"mcp-for-stata","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00252,"percentile":0.17001,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/SepineTam/mcp-for-stata/security/advisories/GHSA-49m4-vp58-wgc9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/SepineTam/mcp-for-stata/releases/tag/v1.19.0","tags":["x_refsource_MISC"]}],"priority":{"score":9.3,"factors":[{"name":"EPSS percentile","points":3.4},{"name":"CVSS severity","points":5.88}]},"vendorSlug":"sepinetam","affectedVersions":[{"vendor":"SepineTam","product":"mcp-for-stata","versions":["< 1.19.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-09-21T14:56:21.699731Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"stata-mcp","vulnerableRanges":["<1.19.0"],"patched":["1.19.0"],"from":["GHSA-49m4-vp58-wgc9","PYSEC-2026-3700"],"provenance":"source"}],"summary":{"text":"MCP-for-Stata (SepineTam's mcp-for-stata) contains a command injection flaw in the ado_package_install MCP tool, which concatenates the user-supplied package argument into a Stata command string without validation. An attacker who can invoke that tool, or the equivalent Python API, can embed newline characters to inject arbitrary Stata commands, including the shell escape command, achieving OS-level code execution under the account running the server; the tool is enabled in the default configuration, and no authentication or user interaction is described as required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:18Z"},"euvd":{"id":"EUVD-2026-83921","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-31040","published":"2026-04-08","fixed":"1.13.0","kev":false},{"cve":"CVE-2026-47708","published":"2026-07-21","fixed":"1.17.3","kev":false,"link":{"from":"CVE-2026-47708","to":"CVE-2026-55071","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:stata-mcp","fromFixed":"1.17.3","toFixed":"1.19.0","daysApart":62}]}},{"cve":"CVE-2026-55071","published":"2026-09-21","fixed":"1.19.0","kev":false}],"package":"PyPI:stata-mcp"}}