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

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). 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
    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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.