Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-47708
Published:July 21, 2026
Updated:July 21, 2026
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.
Affected Packages
https://github.com/SepineTam/mcp-for-stata.git (GITHUB):
Affected version(s) >=v1.3.2 <v1.17.3
Fix Suggestion:
Update to version v1.17.3
stata-mcp (PYTHON):
Affected version(s) >=0.1.0 <1.17.3
Fix Suggestion:
Update to version 1.17.3
Do you need more information?
Contact Us
CVSS v4
Base Score:
9.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
9.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Neutralization of Special Elements used in a Command ('Command Injection')
EPSS
Base Score:
0.63