CVE-2026-32921: OpenClaw's system.run approvals did not bind mutable script operands across approval and execution
OpenClaw's system.run approval flow approved the command line but not the contents of the script it runs. A caller could get approval for something like sh ./script.sh, rewrite the script, and have the changed content run under the earlier approval. openclaw up to 2026.3.7 is affected; 2026.3.8 carries the complete fix.
Published Mar 12, 2026 · Updated Apr 6, 2026 · Analysis Oct 31, 2026
What an attacker can do
system.run asks an operator to approve a command before it runs. In affected versions the approval covered argv only. For interpreter-style commands, the file named in argv is a mutable operand: its bytes can change between approval and execution, while argv stays identical. This is a time-of-check to time-of-use gap (CWE-367) and an authorization flaw (CWE-285).
A caller who can write the script file gets approval for a harmless version, swaps in different content, and runs it. The operator's approval then covers code they never saw. The advisory scores it as network, low privileges, with low impact on confidentiality, integrity and availability, because the caller needs to be able to request approvals and modify the file.
The fix came in two steps. The first commit on March 7, 2026 (c76d292) bound shell scripts and a narrow set of interpreters. On March 8 maintainers found that bun and deno script operands still produced no snapshot. The second commit (cf3a479) closed that gap. So 2026.3.7 still contains the bun and deno hole.
Who is affected
The openclaw npm package, versions up to and including 2026.3.7. The advisory states that 2026.3.7 remains vulnerable, even though it holds the first partial fix, and that 2026.3.8 has the completed one.
npm ls -g openclaw
openclaw --versionExposure applies to setups that use system.run with operator approval for script-running commands.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.3.7
- Fixed in
- 2026.3.8
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.8 or later.
npm install -g [email protected]The complete fix binds approved bun and deno run script operands to on-disk file snapshots. A snapshot records the resolved real path, the argv index and a sha256 of the file, and a rewrite after approval is denied before execution. The tests show package script names such as bun run dev, and deno eval, take no snapshot. The sources give no workaround.
How to tell if you were hit
Look at system.run approval records and compare the approved command against the script's modification time and content at execution. A script file whose mtime falls between approval and execution, for sh, bun or deno invocations, is suspicious. Check version control for unstaged changes to scripts that agents run. Beam records agent shell commands and file access, so you can see a script being edited just before it is executed.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
OpenClaw's system.run approval flow did not bind mutable interpreter-style script operands across approval and execution.
A caller could obtain approval for an execution such as sh ./script.sh, rewrite the approved script before execution, and then execute different content under the previously approved command shape. The approved argv values remained the same, but the mutable script operand content could drift after approval.
Latest published npm version verified vulnerable: 2026.3.7
The initial March 7, 2026 fix in c76d29208bf6a7f058d2cf582519d28069e42240 added approval binding for shell scripts and a narrow interpreter set, but follow-up maintainer review on March 8, 2026 found that bun and deno script operands still did not produce mutableFileOperand snapshots.
A complete fix shipped on March 9, 2026 in cf3a479bd1204f62eef7dd82b4aa328749ae6c91, which binds approved bun and deno run script operands to on-disk file snapshots and denies post-approval script drift before execution.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected versions:
<= 2026.3.7 - Patched version:
2026.3.8
Fix Commit(s)
c76d29208bf6a7f058d2cf582519d28069e42240cf3a479bd1204f62eef7dd82b4aa328749ae6c91
Release Verification
- npm
2026.3.7remains vulnerable. - npm
2026.3.8contains the completed fix.
Thanks @tdjackey for reporting.
Credited to tdjackey.
Questions
- Is 2026.3.7 safe if it has the first fix?
No. The advisory says 2026.3.7 remains vulnerable. The first fix did not snapshot bun and deno script operands. Version 2026.3.8 completes it.
- What exactly was not bound at approval?
The content of the script file. Approved argv stayed the same, but the file named in argv could be rewritten before execution.
- Does this need a remote attacker?
The vector is network with low privileges, so the caller needs access to request system.run approvals and the ability to change the script content.
References
Read for this analysis:
- https://github.com/openclaw/openclaw/security/advisories/GHSA-8g75-q649-6pv6
- https://github.com/openclaw/openclaw/commit/c76d29208bf6a7f058d2cf582519d28069e42240
- https://nvd.nist.gov/vuln/detail/CVE-2026-32921
- https://www.vulncheck.com/advisories/openclaw-script-content-modification-via-mutable-operand-binding-in-system-run
- https://github.com/advisories/GHSA-8g75-q649-6pv6
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
