Skip to content
HighVulnerability

CVE-2026-47708: MCP-for-Stata command injection through log_file_name parameter in stata_do

Identifier
CVE-2026-47708
Published
Record updated
View JSON

Summary

CVE-2026-47708 affects MCP-for-Stata, an MCP server that integrates Stata into an agent, in versions prior to 1.17.3. The log_file_name parameter in the stata_do API and CLI is interpolated into a Stata command string without sanitization, and the GuardValidator checks only do-file content, not this parameter. An attacker can inject arbitrary Stata commands, including shell, python and erase, by crafting a log_file_name containing quotes, newlines or Stata command separators.

Mitigation

Version 1.17.3 contains a patch for the issue.