{"id":"CVE-2026-25157","aliases":["CVE-2026-25157","GHSA-q284-4pvr-m585"],"related":[],"kind":"vulnerability","state":"published","title":"OpenClaw/Clawdbot has OS Command Injection via Project Root Path in sshNodeCommand","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Two related vulnerabilities existed in the macOS application's SSH remote connection handling (`CommandResolver.swift`):\n\n## Details\n\nThe `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**.\n\nThe `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**.\n\n## Impact\n\nAn 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.\n\n**Affected component:** macOS menubar application (Remote/SSH mode only)\n\n**Not affected:** CLI (`npm install openclaw`), web gateway, iOS/Android apps, or users running in Local mode.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-02-02T23:41:35.000Z","modified":"2026-06-17T10:24:12.537Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","score":7.7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":"< 2026.1.29","status":"affected"}],"vendor":"openclaw","product":"openclaw","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2026.1.29"}],"ecosystem":"npm","package":"clawdbot","purl":"pkg:npm/clawdbot","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2026.1.29"}],"vendor":"openclaw","product":"openclaw","cpe":"cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/openclaw/openclaw/security/advisories/GHSA-q284-4pvr-m585","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25157","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/openclaw/openclaw","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-02-05T14:23:09.955Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-25157","url":"https://www.cve.org/CVERecord?id=CVE-2026-25157","licence":"CVE Terms of Use","modified":"2026-02-05T14:32:32.289Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q284-4pvr-m585","url":"https://github.com/advisories/GHSA-q284-4pvr-m585","licence":"CC-BY-4.0","modified":"2026-02-04T23:35:45.254Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-25157","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25157","licence":"Public domain","modified":"2026-06-17T10:24:12.537Z"}],"updatedAt":"2026-11-25T22:59:13.497Z","epss":{"score":0.01051,"percentile":0.65227,"date":"2026-12-01T12:00:22.000Z"}}