Read the docs
TI-2026-39776 Aliases CVE-2026-55071GHSA-49m4-vp58-wgc9

MCP-for-Stata: Stata Command Injection via Unsanitized `package` in `ado_package_install`

Priority HIGH 72CWE-94Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00252 16th percentileScored 2026-11-07
Fix Fixed mcp-for-stata (SepineTam): 1.19.0stata-mcp (PyPI): 1.19.0

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

VendorProductAffected versionsFixed inStatusSource
SepineTammcp-for-statabefore 1.19.01.19.0Patch availableCNA
—stata-mcp (PyPI)before 1.19.01.19.0Patch availableGHSA-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

  1. 2026-10-02 Threatist record created from CVE-2026-55071
  2. 2026-10-03 Alias added: GHSA-49m4-vp58-wgc9

References

  • TI-2026-35211 MCP-for-Stata: Command injection via log_file_name parameter in Stata command wrapper CVSS 4.0CRITICAL 9.3

Sources