CVE-2026-25157
OpenClaw/Clawdbot has OS Command Injection via Project Root Path in sshNodeCommand
描述
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.
如何修補 CVE-2026-25157
要修補 CVE-2026-25157,請將受影響套件升級到下列已修補版本。
- —升級至 2026.1.29 或更新版本
CVE-2026-25157 正在被利用嗎?
低 — EPSS 為 0.9%,目前沒有觀察到大規模利用活動。
受影響套件(1)
- from 0, < 2026.1.29
CVSS 分數
| 來源 | 版本 |
|---|