Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
High

OpenClaw macOS Remote/SSH mode command injection

IdentifiersCVE-2026-25157CWE-78· Improper Neutralization of Special…

CVE-2026-25157 is an OS command injection vulnerability in OpenClaw prior to version 2026.1.29, affecting the macOS menubar application's Remote/SSH mode. Two related flaws are described. First, the sshNodeCommand function generated a shell script that did not properly escape a user-controlled Project Root Path when constructing an error message. If the generated cd command failed, the unescaped project path was interpolated into an echo statement, enabling arbitrary command execution on the remote SSH host. Second, parseSSHTarget failed to reject SSH target strings beginning with a dash, allowing attacker-supplied values such as -oProxyCommand=... to be interpreted by ssh as command-line options rather than a hostname, which could trigger arbitrary command execution on the local machine. The issue was patched in OpenClaw 2026.1.29.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can result in arbitrary command execution in two contexts: on the remote SSH host via injection through the Project Root Path handling in sshNodeCommand, and on the local machine via SSH option injection through parseSSHTarget. Depending on the privileges of the OpenClaw process and SSH session, this can lead to full compromise of the affected workstation and/or remote host, access to sensitive files and credentials, persistence, and lateral movement.

Mitigation

If you can’t patch tonight, do this now.

Until patched, avoid using the macOS menubar application's Remote/SSH mode with untrusted or externally supplied SSH targets, host definitions, or project root paths. Do not import connection settings from untrusted sources. Enforce input validation so SSH target strings cannot begin with '-' and constrain project root paths to expected safe values. Where possible, use Local mode or unaffected clients instead of the vulnerable macOS Remote/SSH workflow.

Remediation

Patch, then assume compromise.

Upgrade OpenClaw to version 2026.1.29 or later. Ensure the macOS menubar application is updated to a build containing the fix. The vulnerable code paths should escape or avoid shell interpolation of user-controlled project paths and strictly validate SSH target strings so they cannot be interpreted as ssh flags or options.
PUBLIC EXPLOITS

Exploits

No valid public exploits. Mallory filtered out 1 candidate as fakes, detection scripts, or README-only repos.

VALID 0 / 1 TOTALView more in app

All candidate exploits were filtered out by Mallory's validation.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
OpenclawClawdbotapplication
OpenclawOpenclawapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity8

Community discussion across Reddit, Mastodon, and other social sources.