9.8critical
gemini-mcp-tool execAsync Command Injection Remote Code Execution Vulnerability
- Severity
- 9.8critical CVSS:3.0 by zdi
- Exploit likelihood
- 2.79% (higher than 87% of CVEs)
- Published
- Last changed
- Assigned by
- zdi
- Also known as
- GHSA-4h5r-5jm8-jxjm
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Gemini MCP Tool gemini-mcp-tool | 1.1.2 | CVE List |
| gemini-mcp-tool (npm) | from 1.1.2 before 1.1.6 | GitHub Advisory Database |
All scores
| zdi | 9.8critical CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
Untrusted prompt input could reach the Gemini CLI @file parser, allowing read/exfiltration of arbitrary local files (@/etc/passwd, @~/.ssh/id_rsa, @../../secret). On Windows, unquoted cmd.exe metacharacters could break out into OS command injection.
Fix (1.1.6): removed the broken shell:false double-quote wrapping; added assertSafeFileReferences() to contain @file refs to the working directory; hardened Windows cmd.exe argument quoting.
NVD (es)
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. La 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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-0755 changed 2026-01-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4h5r-5jm8-jxjm changed 2026-06-18 | CC-BY-4.0 |
| NVD | CVE-2026-0755 changed 2026-06-17 | Public domain |