Read the docs
TI-2026-35211 Aliases CVE-2026-47708GHSA-4p62-hqp5-g644

MCP-for-Stata: Command injection via log_file_name parameter in Stata command wrapper

Priority HIGH 81CWE-77Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-77.

Summary

MCP-for-Stata is an MCP server for Stata to integrate Stata into an agent. Prior to version 1.17.3, the `log_file_name` parameter in the `stata_do` API and CLI is directly interpolated into a Stata command string without sanitization. The security guard (`GuardValidator`) only scans the do-file content but does not validate this parameter. An attacker can inject arbitrary Stata commands (including `shell`, `python`, `erase`, etc.) by crafting a malicious `log_file_name` containing quotes, newlines, or Stata command separators. Version 1.17.3 contains a patch for the issue.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00384 32nd percentileScored 2026-11-07
Fix Fixed stata-mcp (SepineTam): 1.17.3stata-mcp (PyPI): 1.17.3

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
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
SepineTamstata-mcpbefore 1.17.31.17.3Patch availableCNA
—stata-mcp (PyPI)before 1.17.31.17.3Patch availableGHSA-4p62-hqp5-g644
  • stata-mcp VendorSepineTam Affected before 1.17.3 Fixed in 1.17.3 Patch available CNA
  • stata-mcp (PyPI) Vendor— Affected before 1.17.3 Fixed in 1.17.3 Patch available GHSA-4p62-hqp5-g644

Remediation

  • Fix · CNA stata-mcp (SepineTam) Fixed in 1.17.3
  • Fix · GHSA-4p62-hqp5-g644 stata-mcp (PyPI) Fixed in 1.17.3 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-47708
  2. 2026-10-03 Alias added: GHSA-4p62-hqp5-g644

References

  • TI-2026-39776 MCP-for-Stata: Stata Command Injection via Unsanitized `package` in `ado_package_install` CVSS 3.1HIGH 8.4

Sources