CVE-2026-34425: OpenClaw's complex interpreter pipelines could skip exec script preflight validation
OpenClaw 2026.4.1 and earlier skips its exec script preflight check when an interpreter command is complex, for example when it uses a pipe. The guard that should inspect script content before execution then does nothing. Upgrade the openclaw npm package to 2026.4.2.
Published Apr 6, 2026 · Analysis Oct 30, 2026
What an attacker can do
Before OpenClaw runs a shell command that invokes an interpreter on a script, a preflight step in src/agents/bash-tools.exec.ts inspects the script content and blocks unsafe patterns. When the command was not a simple one, such as an interpreter call inside a pipeline, the preflight could not analyze it and failed open. The script content was never checked.
An attacker who controls or influences the command an agent runs can pick that shape deliberately. A prompt-injected agent is the usual route. The unsafe script then runs where the preflight would have refused it.
The advisory calls the preflight a defense-in-depth guard, so this is a weakened safeguard, not a standalone code-execution hole. Other controls, such as exec approvals, still apply. The advisory data has no CVSS score. Teams that depend on the preflight to catch unsafe scripts from an agent should treat the protection as missing on affected versions.
Who is affected
openclaw on npm, version 2026.4.1 and earlier. Check the installed version:
npm ls openclawUse npm ls -g openclaw for a global install. Any deployment where agents run shell commands through OpenClaw's exec tool is in scope.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.4.1
- Fixed in
- 2026.4.2
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.4.2 or later:
npm install [email protected]Commit 8aceaf5d0f0ec552b75a792f7f0a3bfa5b091513 makes the preflight fail closed on complex interpreter invocations that would otherwise skip script-content validation, and inspects quoted script paths correctly before host execution. We could not read the code diff. The advisory lists no workaround.
How to tell if you were hit
Review exec logs for interpreter commands (python, node, bash and similar) inside pipelines or compound commands that ran without a preflight decision. Look for scripts executed from unusual paths or with quoted paths. Beam records the shell commands an agent runs, and its rules can flag risky command shapes, which covers the commands the preflight missed.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Before OpenClaw 2026.4.2, exec script preflight validation could fail open on complex interpreter invocations such as pipes or other non-simple command forms. In those cases, script-content validation could be skipped entirely.
Impact
An attacker-controlled command shape could bypass the intended preflight validation for script execution. This weakened a defense-in-depth guard that was meant to block unsafe script content before execution.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected versions:
<= 2026.4.1 - Patched versions:
>= 2026.4.2 - Latest published npm version:
2026.4.1
Fix Commit(s)
8aceaf5d0f0ec552b75a792f7f0a3bfa5b091513— close the fail-open bypass in exec script preflight
Release Process Note
The fix is present on main and is staged for OpenClaw 2026.4.2. Publish this advisory after the 2026.4.2 npm release is live.
Thanks @iskindar for reporting, and thanks @wsparks-vc for coordination.
Credited to wsparks-vc, iskindar.
Questions
- Which OpenClaw version fixes CVE-2026-34425?
2026.4.2. Versions up to and including 2026.4.1 are affected.
- Is this remote code execution?
The advisory describes a bypass of a defense-in-depth validation step, not a standalone code-execution flaw. An attacker still needs a way to get a command run.
- What does fail-open mean here?
When the preflight could not parse a complex command, it allowed it through unchecked. After the fix it rejects those commands.
References
Read for this analysis:
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
