Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-47708

CRITICAL 9.3EPSS 38%

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

Also known as GHSA-4p62-hqp5-g644, PYSEC-2026-544

Mitigation

  • Upgrade stata-mcp to 1.17.3 or later.

Who should check

  • Projects that depend on PyPI package stata-mcp (< 1.17.3)
  • Anyone running SepineTam stata-mcp < 1.17.3

Vulnerability facts

Affected
stata-mcp < 1.17.3
Fixed in
1.17.3
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
9.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: None
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.53% chance of exploitation in 30 days (percentile 38, 2026-11-26)
CWE
CWE-77
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI stata-mcp< 1.17.31.17.3osv
SepineTam stata-mcp< 1.17.3—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-47708. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-47708.md
Affected: stata-mcp < 1.17.3
Fixed in: 1.17.3

Steps:
1. Search this machine and project for stata-mcp (PyPI), SepineTam stata-mcp: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-47708 being exploited?

There is no confirmed exploitation: CVE-2026-47708 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.53% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-47708?

Critical: CVSS 9.3 (v4.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-47708?

stata-mcp < 1.17.3.

Is there a fix for CVE-2026-47708?

Yes. Fixed in 1.17.3. Upgrade stata-mcp to 1.17.3 or later.

How do I check if I'm affected by CVE-2026-47708?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors