GitHub Advisoryadvisory · npm

GHSA-mhq8-78pj-5j79 OpenClaw's POSIX node system.run safe-bin allowlist could be widened by shell expansion

HIGH Published 2026-07-02 Modified 2026-08-25 Official page ↗
Aliases
CVE-2026-53831
Ecosystem
npm
Packages
openclaw
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L
Weaknesses
CWE-200, CWE-284, CWE-367, CWE-78
Reviewed
2026-07-02

Affected packages

• npm openclaw: < 2026.5.18 → fixed in 2026.5.18

Description

Summary On POSIX nodes, OpenClaw's `system.run` safe-bin checks could approve a command before shell expansion changed how the command was interpreted. A value that appeared to be a safe-bin argument could expand into additional shell words and become a file operand. This issue is limited to paired POSIX node execution through `system.run` with safe-bin or allowlist-style auto-approval. It is not an unauthenticated node takeover. Affected configurations This affects deployments where: • a POSIX node is paired to the gateway • `system.run` is reachable by an authenticated operator or agent flow • exec policy uses safe-bin or allowlist-based auto-approval • the approved command contains shell-expanded values that can change argv shape Impact A lower-privilege operator flow could cause an approved safe-bin command to read a node-local file that was not intended by the policy. Depending on the local files available to the node process, this could expose OpenClaw configuration data or other node-local information. The issue is a policy-enforcement gap in argv validation, not a general statement that every safe-bin command is unsafe. Patched Versions The first stable patched version is `2026.5.18`. Mitigations Upgrade to `[email protected]` or later. Before upgrading, avoid broad safe-bin auto-approval for commands that can read arbitrary paths, and prefer explicit approval for node commands that touch local files.

Related

Alias · CVE (1)

  • CVE-2026-53831 OpenClaw before 2026.5.18 contains a policy enforcement vulnerability in system.run safe-bin allowlist validation that allows shell… vulnerability

Weakness · CWE (4)

  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor weakness
  • CWE-284 Improper Access Control weakness
  • CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition weakness
  • CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness

References