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.
Published Feb 2, 2026 · Updated Feb 4, 2026
Affected packages
clawdbot
- Ecosystem
- npm
- Affected
- < 2026.1.29
- Fixed in
- 2026.1.29
- Check
npm ls clawdbot
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to koko9xxx.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-26317
OpenClaw affected by cross-site request forgery (CSRF) through loopback browser mutation endpoints
high7.1No fixFeb 18, 2026CVE-2026-26328
OpenClaw iMessage group allowlist authorization inherited DM pairing-store identities
medium6.5Feb 18, 2026CVE-2026-28452
OpenClaw affected by denial of service through unguarded archive extraction allowing high expansion/resource abuse (ZIP/TAR)
medium6.5No fixFeb 18, 2026CVE-2026-28469
OpenClaw Google Chat shared-path webhook target ambiguity allowed cross-account policy-context misrouting
high9.8No fixFeb 18, 2026CVE-2026-28478
OpenClaw affected by denial of service via unbounded webhook request body buffering
high7.5No fixFeb 18, 2026CVE-2026-28480
OpenClaw Telegram allowlist authorization accepted mutable usernames
medium5.9No fixFeb 18, 2026
