MCP-for-Stata: Command injection via log_file_name parameter in Stata command wrapper
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| SepineTam | stata-mcp | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Sepinetam | Stata-mcp |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-4p62-hqp5-g644 | MCP-for-Stata: Command injection via log_file_name parameter in Stata command wrapper |
No CVSS v3.1
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.384% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Sepinetam
Sepinetam stata-mcp |
|
| Vendors & Products |
Sepinetam
Sepinetam stata-mcp |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | MCP-for-Stata: Command injection via log_file_name parameter in Stata command wrapper | |
| Weaknesses | CWE-77 | |
| References |
| |
| Metrics |
cvssV4_0
|