CVE-2026-53855: OpenClaw: Shell positional parameters could weaken strict inline-eval checks
OpenClaw before 2026.4.2 can be tricked into running shell content outside its allowlist. A command request that combines allowlisted tools with shell positional arguments (`$1`, `$@` and similar) can place inline-eval content in a shell carrier that the strict inline-eval check does not cover. An authenticated operator can use this to run commands the allowlist was meant to block. Fixed in 2026.4.2.
Published Jun 18, 2026 · Analysis Oct 26, 2026
What an attacker can do
OpenClaw's strict inline-eval check is meant to stop a command like an interpreter with a code string from slipping past an allowlist. The check looked at the obvious carriers. Shell positional parameters were a gap: the code string can be passed as an argument and then expanded by the shell, so the checked command line looks like an allowlisted tool with plain arguments.
The attacker needs an authenticated, low-privilege session that can submit command requests, and the affected feature must be enabled and reachable. The CVSS vectors rate confidentiality and integrity impact as high: the attacker can run shell-provided content on the Gateway host with the Gateway's rights, so files and secrets that process can reach are in scope.
The advisory keeps OpenClaw's trusted-operator model. Authenticated Gateway operators remain trusted unless a separate policy, approval, allowlist, sandbox or auth boundary is crossed. This flaw crosses the allowlist boundary, so it matters most where operators or lower-trust channels are limited by allowlist rules, and where one Gateway is shared between mutually untrusted users.
Who is affected
The npm package openclaw before 2026.4.2. The risk applies to setups that use allowlists for command execution and let lower-trust input reach that path. Check your version:
npm ls openclawor run openclaw --version.
openclaw
- Ecosystem
- npm
- Affected
- < 2026.4.2
- Fixed in
- 2026.4.2
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.4.2, the first stable patched version:
npm install [email protected]Until then, follow the advisory's mitigations: avoid allowlisting shell carrier patterns and require approval for shell wrappers. As general hardening, keep channel and tool allowlists narrow, avoid sharing one Gateway between mutually untrusted users, and disable the affected feature when you do not need it.
How to tell if you were hit
Review Gateway command logs for allowlisted tools invoked through a shell with positional parameters such as sh -c '...' _ arg, or with $1, $@ or "$*" in the command string, especially where the argument holds an interpreter code string. Look for child processes started by the Gateway that are not on your allowlist. Beam records agent shell commands, and its rules can flag risky shell wrappers.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Shell positional parameters could weaken strict inline-eval checks. In affected versions, a command request that combines allowlisted tools with shell positional arguments could place inline-eval content in a shell carrier not covered by the strict check.
This advisory is scoped to the named feature and configuration. It does not change OpenClaw's trusted-operator model: authenticated Gateway operators, installed plugins, and intentional local execution surfaces remain trusted unless a separate policy, approval, allowlist, sandbox, or auth boundary is crossed.
Impact
When the affected feature is enabled and reachable, this could run shell-provided content outside the intended allowlist rule. Practical impact depends on the operator's configuration and whether lower-trust input can reach that path.
Patched Versions
The first stable patched version is 2026.4.2.
Mitigations
avoid allowlisting shell carrier patterns and require approval for shell wrappers until patched. As general hardening, keep channel and tool allowlists narrow, avoid sharing one Gateway between mutually untrusted users, and disable the affected feature when it is not needed.
Credited to cantinagen, Ellahinator.
Questions
- Which OpenClaw version fixes CVE-2026-53855?
2026.4.2 is the first stable patched version. Anything older is vulnerable.
- Does the attacker need to be logged in?
Yes. The CVSS vectors require low privileges, and the VulnCheck summary describes authenticated operators. No user interaction is needed.
- Is there a workaround?
Yes. Do not allowlist shell carrier patterns, require approval for shell wrappers, keep allowlists narrow, and disable the affected feature if you do not need it.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More OpenClaw vulnerabilities
All OpenClaw entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
