The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-61492

CVE-2025-61492: Terminal-controller-mcp RCE Vulnerability

CVE-2025-61492 is a command injection vulnerability in terminal-controller-mcp 0.1.7 that enables remote code execution. Attackers can exploit this flaw to run arbitrary commands and compromise systems.

Updated: March 27, 2026

CVE-2025-61492 Overview

A command injection vulnerability exists in the execute_command function of gongrzhe terminal-controller-mcp version 0.1.7. This vulnerability allows attackers to execute arbitrary commands via crafted input, potentially leading to complete system compromise. The vulnerability is classified as CWE-77 (Command Injection) and affects the terminal-controller-mcp Model Context Protocol (MCP) server component.

Critical Impact

This command injection vulnerability enables unauthenticated remote attackers to execute arbitrary system commands with the privileges of the application, potentially resulting in complete system takeover, data exfiltration, and lateral movement within affected environments.

Affected Products

  • gongrzhe terminal-controller-mcp version 0.1.7
  • Systems running terminal-controller-mcp MCP server implementations

Discovery Timeline

  • 2026-01-07 - CVE-2025-61492 published to NVD
  • 2026-01-30 - Last updated in NVD database

Technical Details for CVE-2025-61492

Vulnerability Analysis

The vulnerability resides in the execute_command function within the terminal-controller-mcp package, a Model Context Protocol (MCP) server designed to provide terminal control capabilities. The function fails to properly sanitize user-supplied input before passing it to shell execution routines. This allows an attacker to inject malicious shell metacharacters and commands that are subsequently executed by the underlying operating system.

The terminal-controller-mcp is an MCP server that enables AI assistants and other clients to interact with system terminals. Due to the nature of this functionality, the command injection vulnerability is particularly dangerous as it directly interfaces with shell execution capabilities. When exploited, attackers can chain arbitrary commands using shell operators such as semicolons, pipes, or command substitution, bypassing any intended command restrictions.

Root Cause

The root cause is improper input validation and sanitization in the execute_command function. The function accepts user-controlled input and constructs shell commands without adequately filtering or escaping special characters. This allows attackers to break out of the intended command context and inject additional malicious commands. The lack of parameterized command execution or strict input whitelisting enables the exploitation of this vulnerability.

Attack Vector

The vulnerability is exploitable remotely over the network without requiring authentication or user interaction. An attacker can send specially crafted input to the MCP server's execute_command function containing shell metacharacters and malicious commands. The attack vector involves:

  1. Identifying an exposed terminal-controller-mcp instance
  2. Crafting malicious input containing command injection payloads (e.g., ; whoami, $(malicious_command), or `malicious_command`)
  3. Submitting the payload to the execute_command function
  4. The injected commands execute with the privileges of the MCP server process

The vulnerability mechanism involves unsanitized input being concatenated into shell commands. For technical details and proof-of-concept information, see the GitHub Issue #7 for Terminal Controller which documents the security concern.

Detection Methods for CVE-2025-61492

Indicators of Compromise

  • Unexpected child processes spawned by the terminal-controller-mcp process
  • Unusual network connections originating from the MCP server process
  • Presence of shell metacharacters in application logs (;, |, $(), backticks)
  • Unauthorized command execution artifacts in system audit logs
  • Anomalous file system modifications or data access patterns

Detection Strategies

  • Implement application-level logging to capture all inputs to the execute_command function and analyze for injection patterns
  • Deploy endpoint detection and response (EDR) solutions to monitor process creation chains originating from the MCP server
  • Utilize network intrusion detection systems (NIDS) to identify suspicious command patterns in network traffic
  • Configure security information and event management (SIEM) rules to correlate unusual process behavior with MCP server activity

Monitoring Recommendations

  • Enable verbose logging for the terminal-controller-mcp application and forward logs to centralized monitoring
  • Monitor for privilege escalation attempts following command execution
  • Implement file integrity monitoring on systems running vulnerable versions
  • Track network egress patterns from hosts running the MCP server for potential data exfiltration

How to Mitigate CVE-2025-61492

Immediate Actions Required

  • Discontinue use of terminal-controller-mcp version 0.1.7 until a patched version is available
  • Restrict network access to the MCP server using firewall rules to limit exposure
  • Implement network segmentation to isolate systems running the vulnerable component
  • Review application logs for evidence of exploitation attempts
  • Consider deploying web application firewalls (WAF) or input validation proxies if the service must remain operational

Patch Information

At the time of publication, no official patch has been released by the vendor. Users should monitor the GitHub Repository for Terminal Controller for security updates and new releases. The vulnerability has been documented in GitHub Issue #7 for Terminal Controller. A related issue has also been identified in a similar project, documented in GitHub Issue #19 for Super Shell.

Workarounds

  • Disable the execute_command functionality if not required for operations
  • Implement strict input validation at the network perimeter or application gateway level
  • Run the MCP server with minimal privileges using a dedicated service account
  • Deploy containerization to limit the blast radius of successful exploitation
  • Use application-level allowlisting to restrict executable commands to a predefined safe set
bash
# Example: Restrict network access to the MCP server
# Block external access to the terminal-controller-mcp service port
iptables -A INPUT -p tcp --dport <MCP_PORT> -s 127.0.0.1 -j ACCEPT
iptables -A INPUT -p tcp --dport <MCP_PORT> -j DROP

# Run the service with reduced privileges
# Create a dedicated low-privilege user for the MCP server
useradd -r -s /bin/false mcp-service
chown -R mcp-service:mcp-service /path/to/terminal-controller-mcp

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGongrzhe Terminal Controller Mcp

  • SeverityCRITICAL

  • CVSS Score10.0

  • EPSS Probability0.71%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-77
  • Technical References
  • GitHub Repository for Terminal Controller

  • GitHub Issue #7 for Terminal Controller

  • GitHub Issue #19 for Super Shell
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English