NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-32971: OpenClaw: Node-host approvals could show misleading shell payloads instead of the executed argv

highCVSS 3.1 7.1GHSA-rw39-5899-8mxp

OpenClaw's node-host `system.run` approvals could show an operator only the inner shell payload, such as `jq --version`, while execution ran a different outer wrapper argv, such as `./env sh -c 'jq --version'`. An attacker who controls a local wrapper binary gets code run after the operator approves text that does not match. The npm package `openclaw` is fixed in 2026.3.11.

Published Mar 13, 2026 · Updated Apr 6, 2026 · Analysis Oct 31, 2026

What an attacker can do

Wrapper resolution normalized executables by basename and pulled out the inner shell payload for the approval prompt. Execution kept the full wrapper argv. The approval storage and UI therefore displayed text that did not match the command OpenClaw ran. This is an interpretation conflict (CWE-436) that defeats the authorization step (CWE-863).

An attacker needs two things: the ability to place or select a local wrapper binary, such as a file named env in a reachable directory, and a way to get the agent to propose a wrapper-shaped command. The operator then approves what looks like a harmless jq --version, and the wrapper executes instead.

The result is local code execution under the node host's account, with high confidentiality, integrity and availability impact. User interaction is required, since a human must approve, and attack complexity is high. The risk is highest for teams that rely on the approval prompt as their main control over what an agent may run on a node host.

Who is affected

All openclaw npm releases up to and including 2026.3.8 are affected, per the advisory. The packages data lists versions below 2026.3.11. The flaw applies to node-host system.run approvals. Check your version:

npm ls openclaw

openclaw

Ecosystem
npm
Affected
< 2026.3.11
Fixed in
2026.3.11
Check
npm ls openclaw

How to fix it

Upgrade to 2026.3.11 or later.

npm install -g [email protected]

Approvals are now bound to the exact executed argv. The extracted shell payload text stays only as secondary preview data. The advisory lists no other workaround.

How to tell if you were hit

Compare approval records with the processes actually spawned on the node host. Look for approved entries that show a short payload while the process list shows a wrapper such as ./env sh -c ..., and for executables named like common tools (env, sh) in working directories or temp paths. Beam records agent shell commands, so you can check the command an agent ran against what was approved.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

In affected versions of openclaw, node-host system.run approvals could display only an extracted shell payload such as jq --version while execution still ran a different outer wrapper argv such as ./env sh -c 'jq --version'.

Impact

This is an approval-integrity bug. An attacker who could place or select a local wrapper binary and induce a wrapper-shaped command could get local code executed after the operator approved misleading command text.

Affected Packages and Versions

  • Package: openclaw (npm)
  • Affected versions: <= 2026.3.8
  • Fixed in: 2026.3.11

Technical Details

Wrapper resolution normalized executables by basename and extracted inner shell payload text for approval display, while execution still preserved the full wrapper argv. Approval storage and UI therefore showed text that did not match the exact command OpenClaw would execute.

Fix

OpenClaw now binds approvals to the exact executed argv and keeps extracted shell payload text only as secondary preview data. The fix shipped in [email protected].

Workarounds

Upgrade to 2026.3.11 or later.

Credited to tdjackey.

Questions

Does the operator have to approve something?

Yes. User interaction is required. The flaw is that the approved text showed the inner payload while the full wrapper argv ran.

What does the attacker need locally?

The ability to place or select a local wrapper binary and to induce a wrapper-shaped command. Without that, the approval display and execution match.

Which version fixes it?

openclaw 2026.3.11, which binds approvals to the exact executed argv.

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 entries