# CVE-2026-25157: OpenClaw Clawdbot OS command injection in sshNodeCommand

Source: https://junglewise.ai/threats/cve-2026-25157-openclaw-clawdbot-os-command-injection-in-sshnodecommand  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-02-02. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-25157 · Severity: low · CVSS 3.1 · Published 2026-02-02

OpenClaw's Clawdbot is a macOS application for remote SSH connections. A flaw in how it handles SSH project paths and target strings allows an attacker to inject arbitrary shell commands and gain code execution on either the user's local machine or their remote SSH server, potentially compromising sensitive systems and data.

Technologies: [clawdbot (npm)](https://junglewise.ai/threats/technologies/clawdbot). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2026-25157 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-25157 being exploited in the wild.

**How severe is CVE-2026-25157?** Low severity, with a CVSS score of 3.1, published 2 February 2026.

**Which products and versions are affected?** clawdbot (npm) SEMVER:introduced=0,fixed=2026.1.29.

**Is there a fix for CVE-2026-25157?** Yes. clawdbot (npm): upgrade to 2026.1.29 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-25157 attacked?** It is attacked with local access.

**Am I affected by CVE-2026-25157?** Check whether you run clawdbot (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- clawdbot (npm): upgrade to 2026.1.29 or later

  ```sh
  npm install clawdbot@2026.1.29
  ```


## Technical details

The vulnerability involves two related OS command injection flaws in CommandResolver.swift: (1) the sshNodeCommand function fails to escape user-supplied project paths before interpolating them into a shell script's error message, and when the cd command fails, the unescaped path is echoed directly, enabling arbitrary command execution on the remote SSH host; (2) the parseSSHTarget function does not validate SSH target strings, allowing attackers to supply targets beginning with a dash (e.g., -oProxyCommand=...) which are interpreted as SSH configuration flags rather than hostnames, enabling local code execution. Both vectors require an attacker to influence the user's remote connection settings via social engineering or malicious configuration, and require user interaction. The vulnerability affects only the macOS menubar application in Remote/SSH mode; CLI, web gateway, and iOS/Android apps are unaffected. A patch was released in version 2026.1.29.

## Affected products

- OpenClaw Clawdbot <2026.1.29

## Identifiers

- CVE-2026-25157
- GHSA-q284-4pvr-m585

## Timeline

- 2026-02-02: disclosed: Advisory published
- 2026-01-29: patched: Fix released in version 2026.1.29

## References

- [https://github.com/openclaw/openclaw/security/advisories/GHSA-q284-4pvr-m585](https://github.com/openclaw/openclaw/security/advisories/GHSA-q284-4pvr-m585)

## Related threats

- [OpenClaw Telegram allowlist authentication bypass via mutable usernames](https://junglewise.ai/threats/cve-2026-28480-openclaw-telegram-allowlist-authentication-bypass-via-mutable)
- [OpenClaw Google Chat webhook target ambiguity policy-context misrouting](https://junglewise.ai/threats/cve-2026-28469-openclaw-google-chat-webhook-target-ambiguity-policy-context)
- [OpenClaw cross-site request forgery in browser mutation endpoints](https://junglewise.ai/threats/cve-2026-26317-openclaw-csrf-in-loopback-browser-mutation-endpoints)
- [OpenClaw denial of service via unbounded webhook request body buffering](https://junglewise.ai/threats/cve-2026-28478-openclaw-denial-of-service-via-unbounded-webhook-request-body)
- [OpenClaw denial of service through unguarded archive extraction](https://junglewise.ai/threats/cve-2026-28452-openclaw-denial-of-service-through-unguarded-archive-extraction)
