CVE-2026-25157: Clawdbot OpenClaw/Clawdbot Has OS Command Injection Vulnerability

HIGH
Advisory Identifier: GHSA-q284-4pvr-m585
CVSS 7.7
CWE-78
Published
Advisory Summary

CVE-2026-25157 is a HIGH (CVSS 7.7) openclaw/clawdbot has os command injection vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Clawdbot libraries in the npm ecosystem. The issue involves openclaw/clawdbot has os command injection via project root path in sshnodecommand. Remediation is available by upgrading affected packages to version 2026.1.29.

CVE-2026-25157 at a Glance

CVE Identifier CVE-2026-25157
GHSA Identifier GHSA-q284-4pvr-m585
Severity HIGH
CVSS v3.1 Base Score 7.7
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product Clawdbot
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-25157

To remediate this vulnerability, upgrade all affected Clawdbot dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

clawdbot fixed: 2026.1.29
npm install clawdbot@2026.1.29
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls clawdbot

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-25157, inspect your project dependencies using npm:

npm ls clawdbot

Analyze the terminal output to locate any version of Clawdbot in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2026.1.29), your application is affected.

Note: The npm ls clawdbot command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Clawdbot, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-25157 Affected Clawdbot Versions

1 component(s)
Fixed Versions:
2026.1.29
Product / Package Ecosystem Affected Versions Fixed Version
clawdbot
npm
< 2026.1.29
2026.1.29

References

Frequently Asked Questions

What is CVE-2026-25157?
CVE-2026-25157 is a security vulnerability in Clawdbot involving OpenClaw/Clawdbot has OS Command Injection via Project Root Path in sshNodeCommand under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which Clawdbot versions are affected?
Affected versions include releases prior to 2026.1.29 across affected packages: clawdbot.
What version fixes CVE-2026-25157?
Upgrading to 2026.1.29 (or the latest patched release for your respective branch) resolves the vulnerability.
Is clawdbot affected?
Yes, clawdbot is affected in releases prior to 2026.1.29. Upgrade your dependency to 2026.1.29 or later.
What is the CVSS score of CVE-2026-25157?
CVE-2026-25157 has a CVSS v3.1 base score of 7.7 (HIGH) with vector string CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2026-25157?
CVE-2026-25157 is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.).
How can I check npm dependencies for CVE-2026-25157?
Run the dependency tree command: 'npm ls clawdbot'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q284-4pvr-m585",
  "modified" : "2026-02-04T21:56:23Z",
  "published" : "2026-02-02T23:41:35Z",
  "aliases" : [ "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`):\n\n## Details\n\nThe `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**.\n\nThe `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**.\n\n## Impact\n\nAn 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.\n\n**Affected component:** macOS menubar application (Remote/SSH mode only)\n\n**Not affected:** CLI (`npm install openclaw`), web gateway, iOS/Android apps, or users running in Local mode.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "clawdbot"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2026.1.29"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/openclaw/openclaw/security/advisories/GHSA-q284-4pvr-m585"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25157"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openclaw/openclaw"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-78" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-02T23:41:35Z",
    "nvd_published_at" : "2026-02-04T20:16:06Z"
  }
}