Breaking News: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2026-47708

MCP-for-Stata: Command injection via log_file_name parameter in Stata command wrapper

Overview

Published
21 Jul 2026
Modified
24 Oct 2026
Critical CVE
1 Registry packages
0 OS packages
0 Linux distributions
Yes Fix available
CVSS score Critical, no score

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.

Source: OX vulnerability database

Severity

CRITICAL

No CVSS vector in the source. Severity comes from the advisory.

Weakness: CWE-77

Affected packages · 1

Packages affected by CVE-2026-47708
EcosystemPackageVulnerableFixed in
PyPI stata-mcp <1.17.3 1.17.3

Open a package to see all its vulnerabilities.

Operating systems

No Linux distribution reports this ID.

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.