CVE Explorer
CVE-2026-47708
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, newlin
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"stata-mcp","vendor":"SepineTam","versions":[{"status":"affected","version":"< 1.17.3"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:4f5d4426abc949ce67984f572a010b923664a5056937a72af28251d8c9f3cc74 · sha256:496d2aa1a7b10455… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":9.3,"baseSeverity":"CRITICAL","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:4f5d4426abc949ce67984f572a010b923664a5056937a72af28251d8c9f3cc74 · sha256:496d2aa1a7b10455… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-77","description":"CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:4f5d4426abc949ce67984f572a010b923664a5056937a72af28251d8c9f3cc74 · sha256:496d2aa1a7b10455… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"https://github.com/SepineTam/mcp-for-stata/commit/e6f945941ae0c7cf5e74a428e0b3dc82b396382f","tags":["x_refsource_MISC"],"url":"https://github.com/SepineTam/mcp-for-stata/commit/e6f945941ae0c7cf5e74a428e0b3dc82b396382f"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:4f5d4426abc949ce67984f572a010b923664a5056937a72af28251d8c9f3cc74 · sha256:496d2aa1a7b10455… · /containers/cna/references/2
{"name":"https://github.com/SepineTam/mcp-for-stata/issues/74","tags":["x_refsource_MISC"],"url":"https://github.com/SepineTam/mcp-for-stata/issues/74"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:4f5d4426abc949ce67984f572a010b923664a5056937a72af28251d8c9f3cc74 · sha256:496d2aa1a7b10455… · /containers/cna/references/1
{"name":"https://github.com/SepineTam/mcp-for-stata/security/advisories/GHSA-4p62-hqp5-g644","tags":["x_refsource_CONFIRM"],"url":"https://github.com/SepineTam/mcp-for-stata/security/advisories/GHSA-4p62-hqp5-g644"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:4f5d4426abc949ce67984f572a010b923664a5056937a72af28251d8c9f3cc74 · sha256:496d2aa1a7b10455… · /containers/cna/references/0
{"tags":["exploit"],"url":"https://github.com/SepineTam/mcp-for-stata/security/advisories/GHSA-4p62-hqp5-g644"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:4f5d4426abc949ce67984f572a010b923664a5056937a72af28251d8c9f3cc74 · sha256:496d2aa1a7b10455… · /containers/adp/0/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.