High

OpenClaw/Clawdbot has OS Command Injection via Project Root Path in sshNodeCommand

  • Disclosed: 02.02.2026
  • Updated: 11.10.2026 10:22

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package clawdbot < 2026.1.29 2026.1.29

References

CVSS score 7.7/10
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Weakness (CWE)
CWE-78
Platform
npm
Package
clawdbot
Disclosed
02.02.2026
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-q284-4pvr-m585 - CC BY 4.0

Vulnerability history: clawdbot

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (11) in the archive
Total entries
11
First → latest
02.2026 02.2026
Without a fix
7
Exploited in attacks
0

Severity breakdown

  • High 6
  • Medium 4
  • Low 1

Disclosures per year

  1. 2026: 11
Severity:
  1. OpenClaw/Clawdbot has OS Command Injection via Project Root Path in sshNodeCommand this entry
    High · 7.7 CVE-2026-25157 < 2026.1.29 2026.1.29

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.