CVE-2026-47708: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') in SepineTam stata-mcp
CVE-2026-47708 is a critical command injection vulnerability in SepineTam's MCP-for-Stata (stata-mcp) prior to version 1.17.3. The vulnerability arises because the log_file_name parameter in the stata_do API and CLI is directly interpolated into Stata command strings without proper sanitization. This allows an attacker to inject arbitrary Stata commands, including potentially dangerous commands like shell or python execution, by crafting malicious input containing special characters. The issue is patched in version 1.17.3.
AI Analysis
Technical Summary
The vulnerability CVE-2026-47708 in SepineTam's stata-mcp product is due to improper neutralization of special elements in the log_file_name parameter used in the stata_do API and CLI. Prior to version 1.17.3, this parameter is directly embedded into Stata command strings without sanitization, while the GuardValidator only scans do-file content and does not validate this parameter. This flaw enables attackers to inject arbitrary Stata commands, including shell and python commands, by exploiting special characters such as quotes, newlines, or command separators in the log_file_name. The vulnerability is fixed in version 1.17.3.
Potential Impact
Successful exploitation allows unauthenticated attackers to execute arbitrary Stata commands remotely, potentially leading to full command execution on the host system. This can result in complete compromise of the affected system, including data loss, system manipulation, or further attacks. The CVSS 4.0 base score is 9.3, indicating critical severity with network attack vector, no required privileges or user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A patch is available in SepineTam stata-mcp version 1.17.3 that addresses this vulnerability by properly sanitizing the log_file_name parameter. Users should upgrade to version 1.17.3 or later to remediate this issue. No vendor advisory content is provided, but the version information clearly indicates the fix. Until upgrading, avoid exposing the vulnerable API or CLI to untrusted users.
CVE-2026-47708: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') in SepineTam stata-mcp
Description
CVE-2026-47708 is a critical command injection vulnerability in SepineTam's MCP-for-Stata (stata-mcp) prior to version 1.17.3. The vulnerability arises because the log_file_name parameter in the stata_do API and CLI is directly interpolated into Stata command strings without proper sanitization. This allows an attacker to inject arbitrary Stata commands, including potentially dangerous commands like shell or python execution, by crafting malicious input containing special characters. The issue is patched in version 1.17.3.
CVSS v4.0
Score 9.3critical
Affected software
pkg:github/sepinetam/mcp-for-stataRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-47708 in SepineTam's stata-mcp product is due to improper neutralization of special elements in the log_file_name parameter used in the stata_do API and CLI. Prior to version 1.17.3, this parameter is directly embedded into Stata command strings without sanitization, while the GuardValidator only scans do-file content and does not validate this parameter. This flaw enables attackers to inject arbitrary Stata commands, including shell and python commands, by exploiting special characters such as quotes, newlines, or command separators in the log_file_name. The vulnerability is fixed in version 1.17.3.
Potential Impact
Successful exploitation allows unauthenticated attackers to execute arbitrary Stata commands remotely, potentially leading to full command execution on the host system. This can result in complete compromise of the affected system, including data loss, system manipulation, or further attacks. The CVSS 4.0 base score is 9.3, indicating critical severity with network attack vector, no required privileges or user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A patch is available in SepineTam stata-mcp version 1.17.3 that addresses this vulnerability by properly sanitizing the log_file_name parameter. Users should upgrade to version 1.17.3 or later to remediate this issue. No vendor advisory content is provided, but the version information clearly indicates the fix. Until upgrading, avoid exposing the vulnerable API or CLI to untrusted users.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-19T21:29:25.481Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5fdfa79c2644c7f8c1b061
Added to database: 07/21/2026, 21:07:51 UTC
Last enriched: 07/30/2026, 07:52:43 UTC
Last updated: 09/02/2026, 22:52:12 UTC
Views: 49
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.