GHSA-q284-4pvr-m585

Suggest an improvement
Source
https://github.com/advisories/GHSA-q284-4pvr-m585
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-q284-4pvr-m585/GHSA-q284-4pvr-m585.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-q284-4pvr-m585
Aliases
Published
2026-02-02T23:41:35Z
Modified
2026-02-04T23:35:45.254642Z
Severity
  • 7.7 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2026-02-04T20:16:06Z",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-78"
    ],
    "github_reviewed_at": "2026-02-02T23:41:35Z",
    "severity": "HIGH"
}
References

Affected packages

npm / clawdbot

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2026.1.29

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-q284-4pvr-m585/GHSA-q284-4pvr-m585.json"