MCP-for-Stata: Stata Command Injection via Unsanitized `package` in `ado_package_install`
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 | mcp-for-stata | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Sepinetam | Mcp-for-stata |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-49m4-vp58-wgc9 | MCP-for-Stata: Stata Command Injection via Unsanitized `package` in `ado_package_install` |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.252% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Sepinetam
Sepinetam mcp-for-stata |
|
| Vendors & Products |
Sepinetam
Sepinetam mcp-for-stata |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | MCP-for-Stata: Stata Command Injection via Unsanitized `package` in `ado_package_install` | |
| Weaknesses | CWE-94 | |
| References |
| |
| Metrics |
cvssV3_1
|