CVE-2026-47708: Vulnerability in stata-mcp

Critical. 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,...

PyPI, CWE-77

Exploitation
None confirmed
Severity
9.3 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-4p62-hqp5-g644
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
Weakness
CWE-77
Published
4 Jun 2026
Last change
24 Oct 2026
Ecosystem
PyPI

Affected packages

Vulnerable version ranges and fixed releases

  • stata-mcp PyPI, Affected before 1.17.3. Fixed in 1.17.3

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes