Advisory

GHSA-q284-4pvr-m585

Also known as: CVE-2026-25157

Summary

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

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-02-02 23:41 UTC
Modified
2026-02-04 23:35 UTC

Affected packages and fixes

clawdbot

npm · All systems

Affected

  • introduced 0, fixed 2026.1.29 (semver)

Fixed versions

2026.1.29

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences