{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-47708","id":"CVE-2026-47708","title":"MCP-for-Stata: Command injection via log_file_name parameter in Stata command wrapper","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","descriptionLong":"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.","published":"2026-07-21T20:55:15.048Z","updated":"2026-11-11T10:47:21.374170430Z","reserved":"2026-05-19T21:29:25.481Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":9.3,"vector":"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","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"4.0","score":9.3,"vector":"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","rating":"critical","source":"GitHub_M"},{"version":"4.0","score":9.3,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"critical","source":"github.com"},{"version":"4.0","score":null,"vector":"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"vector":"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","rating":"critical","source":"GitHub"}],"rating":"critical","products":["SepineTam stata-mcp"],"affectedProducts":[{"vendor":"SepineTam","product":"stata-mcp","defaultStatus":null,"versions":[{"version":"< 1.17.3","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"stata-mcp","purl":"pkg:pypi/stata-mcp","ranges":["<1.17.3"],"fixed":["1.17.3"],"advisory":"GHSA-4p62-hqp5-g644"}],"cwes":["CWE-77"],"aliases":["GHSA-4p62-hqp5-g644","PYSEC-2026-544"],"references":[{"url":"https://github.com/SepineTam/mcp-for-stata/security/advisories/GHSA-4p62-hqp5-g644","tags":["x_refsource_CONFIRM","exploit","advisory"]},{"url":"https://github.com/SepineTam/mcp-for-stata/issues/74","tags":["x_refsource_MISC","report","web"]},{"url":"https://github.com/SepineTam/mcp-for-stata/commit/e6f945941ae0c7cf5e74a428e0b3dc82b396382f","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47708.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47708","tags":["advisory"]},{"url":"https://github.com/SepineTam/stata-mcp/security/advisories/GHSA-4p62-hqp5-g644","tags":["web"]},{"url":"https://github.com/SepineTam/stata-mcp","tags":["package"]},{"url":"https://pypi.org/project/stata-mcp","tags":["package"]},{"url":"https://github.com/advisories/GHSA-4p62-hqp5-g644","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total"},"epss":0.00384,"epssPercentile":0.33209,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-47708","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47708","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-47708","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4p62-hqp5-g644","ok":true,"note":"GHSA-4p62-hqp5-g644"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-47708","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}