Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-47708— MCP-for-Stata: Command injection via log_file_name parameter in Stata command wrapper

Quick assessment

Affected
SepineTam stata-mcp
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

S.Tam MCP-for-Stata是美国S.Tam个人开发者的一款用于将 Stata 集成到代理中的 MCP 服务器。 S.Tam MCP-for-Stata 1.17.3之前版本存在命令注入漏洞,该漏洞源于在stata_do API和CLI中的 参数直接插入到Stata命令字符串中且未进行清理,攻击者可通过构造恶意的 注入任意Stata命令。

AI Predicted 8.6 Difficulty: Easy EPSS 0.53% · P43

Affected Version Matrix 1

VendorProduct Version RangeStatus
SepineTam stata-mcp < 1.17.3 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-47708

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
MCP-for-Stata: Command injection via log_file_name parameter in Stata command wrapper
Source: CVE Program / CVE List V5
Vulnerability 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: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
在命令中使用的特殊元素转义处理不恰当(命令注入)
Source: CVE Program / CVE List V5
Vulnerability Title
S.Tam MCP-for-Stata 命令注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
S.Tam MCP-for-Stata是美国S.Tam个人开发者的一款用于将 Stata 集成到代理中的 MCP 服务器。 S.Tam MCP-for-Stata 1.17.3之前版本存在命令注入漏洞,该漏洞源于在stata_do API和CLI中的`log_file_name`参数直接插入到Stata命令字符串中且未进行清理,攻击者可通过构造恶意的`log_file_name`注入任意Stata命令。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
SepineTam stata-mcp < 1.17.3 -

II. Public POCs for CVE-2026-47708

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-47708

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-47708 (1)

Vendor Advisories for CVE-2026-47708 (1)

Proof of Concept for CVE-2026-47708 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-47708

No comments yet


Leave a comment