{"cve":"CVE-2026-47708","nvd":{"published":"2026-07-21T21:16:51.477","modified":"2026-10-24T19:10:00.127","status":"Deferred","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.","cvss_v4":{"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","score":9.3},"cvss_v3":null,"cwes":["CWE-77"],"references":["https://github.com/SepineTam/mcp-for-stata/commit/e6f945941ae0c7cf5e74a428e0b3dc82b396382f","https://github.com/SepineTam/mcp-for-stata/issues/74","https://github.com/SepineTam/mcp-for-stata/security/advisories/GHSA-4p62-hqp5-g644","https://github.com/SepineTam/mcp-for-stata/security/advisories/GHSA-4p62-hqp5-g644"],"products":[],"source":"nvd","synced_at":"2026-10-25T17:50:08.599881581+00:00"},"epss":{"cve":"CVE-2026-47708","score":0.00384,"percentile":0.32194,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-4p62-hqp5-g644","url":"https://osv.dev/vulnerability/GHSA-4p62-hqp5-g644","summary":"MCP-for-Stata: Command injection via log_file_name parameter in Stata command wrapper","modified":"2026-06-29T12:26:16.888662747Z","packages":[{"ecosystem":"PyPI","name":"stata-mcp","purl":"pkg:pypi/stata-mcp","ranges":["<1.17.3"],"fixed":["1.17.3"]}]},{"id":"PYSEC-2026-544","url":"https://osv.dev/vulnerability/PYSEC-2026-544","summary":"MCP-for-Stata: Command injection via log_file_name parameter in Stata command wrapper","modified":"2026-07-01T20:23:05.367908Z","packages":[{"ecosystem":"PyPI","name":"stata-mcp","purl":"pkg:pypi/stata-mcp","ranges":["<1.17.3"],"fixed":["1.17.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}