7.8high
OpenClaw/Clawdbot has OS Command Injection via Project Root Path in sshNodeCommand
- Severity
- 7.8high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.05% (higher than 65% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-q284-4pvr-m585
Description
OpenClaw is a personal AI assistant. Prior to version 2026.1.29, there is an OS command injection vulnerability via the Project Root Path in sshNodeCommand. The sshNodeCommand function constructed a shell script without properly escaping the user-supplied project path in an error message. When the cd command failed, the unescaped path was interpolated directly into an echo statement, allowing arbitrary command execution on the remote SSH host. The parseSSHTarget function did not validate that SSH target strings could not begin with a dash. An attacker-supplied target like -oProxyCommand=... would be interpreted as an SSH configuration flag rather than a hostname, allowing arbitrary command execution on the local machine. This issue has been patched in version 2026.1.29.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| openclaw openclaw | < 2026.1.29, before 2026.1.29 | CVE List, NVD |
| clawdbot (npm) | before 2026.1.29 | GitHub Advisory Database |
All scores
| GitHub_M | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
| GitHub | 7.7high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
OpenClaw is a personal AI assistant. Prior to version 2026.1.29, there is an OS command injection vulnerability via the Project Root Path in sshNodeCommand. The sshNodeCommand function constructed a shell script without properly escaping the user-supplied project path in an error message. When the cd command failed, the unescaped path was interpolated directly into an echo statement, allowing arbitrary command execution on the remote SSH host. The parseSSHTarget function did not validate that SSH target strings could not begin with a dash. An attacker-supplied target like -oProxyCommand=... would be interpreted as an SSH configuration flag rather than a hostname, allowing arbitrary command execution on the local machine. This issue has been patched in version 2026.1.29.
GitHub Advisory Database
Two related vulnerabilities existed in the macOS application's SSH remote connection handling (CommandResolver.swift):
Details
The sshNodeCommand function constructed a shell script without properly escaping the user-supplied project path in an error message. When the cd command failed, the unescaped path was interpolated directly into an echo statement, allowing arbitrary command execution on the remote SSH host.
The parseSSHTarget function did not validate that SSH target strings could not begin with a dash. An attacker-supplied target like -oProxyCommand=... would be interpreted as an SSH configuration flag rather than a hostname, allowing arbitrary command execution on the local machine.
Impact
An attacker who can influence a user's remote connection settings (via social engineering or malicious configuration) could achieve arbitrary code execution on either the user's local machine or their configured remote SSH host, depending on which input vector is exploited.
Affected component: macOS menubar application (Remote/SSH mode only)
Not affected: CLI (npm install openclaw), web gateway, iOS/Android apps, or users running in Local mode.
NVD (es)
OpenClaw es un asistente personal de IA. Antes de la versión 2026.1.29, existe una vulnerabilidad de inyección de comandos del sistema operativo a través de la Ruta Raíz del Proyecto en sshNodeCommand. La función sshNodeCommand construía un script de shell sin escapar correctamente la ruta del proyecto proporcionada por el usuario en un mensaje de error. Cuando el comando cd fallaba, la ruta sin escapar se interpolaba directamente en una declaración echo, permitiendo la ejecución arbitraria de comandos en el host SSH remoto. La función parseSSHTarget no validaba que las cadenas de destino SSH no pudieran comenzar con un guion. Un objetivo proporcionado por el atacante como -oProxyCommand=... sería interpretado como una bandera de configuración SSH en lugar de un nombre de host, permitiendo la ejecución arbitraria de comandos en la máquina local. Este problema ha sido parcheado en la versión 2026.1.29.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-25157 changed 2026-02-05 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-q284-4pvr-m585 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2026-25157 changed 2026-06-17 | Public domain |