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

CVE-2026-29607: OpenClaw's allow-always wrapper persistence could bypass future approvals and enable command execution

mediumCVSS 3.1 6.4GHSA-6j27-pc5c-m8w8

In OpenClaw up to 2026.2.21-2, approving a wrapped `system.run` command with `allow-always` in `security=allowlist` mode saved the wrapper, not the inner program. Later runs of different inner payloads through the same wrapper skipped approval. Fixed in 2026.2.22.

Published Mar 2, 2026 · Updated Mar 19, 2026 · Analysis Oct 31, 2026

What an attacker can do

Commands such as env, nice, nohup, stdbuf and timeout launch another program. When an operator chose allow-always for one of these, OpenClaw resolved and stored the wrapper level. The stored rule then said "this wrapper is trusted", whatever it launches. A benign approved call such as a wrapped build step therefore opened the door for any other wrapped payload.

The flaw sits in the approval persistence flows of both the gateway and the node host. The result is an authorization bypass in allowlist mode, which can mean command execution without any prompt on later wrapped invocations. The attacker needs a way to submit commands, for example an agent steered by a prompt injection, and a prior allow-always grant on a wrapped command. The CVSS 3.1 vector reflects that with high attack complexity, high privileges and required user interaction, but the impact if it lands is full control as the OpenClaw user.

Who is affected

The openclaw npm package at 2026.2.21-2 and earlier (below 2026.2.22). Only setups running security=allowlist where someone granted allow-always to a command wrapped by env, nice, nohup, stdbuf or timeout are exposed.

npm ls -g openclaw
openclaw --version

openclaw

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

How to fix it

Upgrade to openclaw 2026.2.22.

npm install -g [email protected]

The fix commit 24c954d972400f508814532dea0e4dcb38418bb0 stores the inner executable path for the known wrapper chains and fails closed if safe unwrapping cannot be derived. Until you can upgrade, the advisory says to run a stricter exec policy: ask=always or security=deny. Review existing allow-always entries afterwards, since rules saved by older versions keep the wrapper-level scope.

How to tell if you were hit

Open the saved exec allowlist and look for entries whose path is env, nice, nohup, stdbuf or timeout rather than a specific tool. Search shell history and exec logs for these wrappers launching programs you never approved. Beam logs agent shell commands, so wrapped commands run by an agent are visible in its records.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

In openclaw npm releases up to and including 2026.2.21-2, approving wrapped system.run commands with allow-always in security=allowlist mode could persist wrapper-level allowlist entries and enable later approval-bypass execution of different inner payloads.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected versions: <= 2026.2.21-2
  • Planned patched version: 2026.2.22

Details

allow-always persistence was based on wrapper-level resolution instead of stable inner executable intent. A benign approved wrapper invocation could therefore broaden future trust boundaries.

Affected paths included gateway and node-host execution approval persistence flows. The fix now persists inner executable paths for known dispatch-wrapper chains (env, nice, nohup, stdbuf, timeout) and fails closed when safe unwrapping cannot be derived.

Impact

Authorization boundary bypass in allowlist mode, potentially leading to approval-free command execution (RCE class) on subsequent wrapped invocations.

Mitigation

Upgrade to 2026.2.22 (planned next release) or run with stricter exec policy (ask=always / security=deny) until upgraded.

Fix Commit(s)

  • 24c954d972400f508814532dea0e4dcb38418bb0

Release Process Note

patched_versions is pre-set to 2026.2.22 so this advisory is publish-ready; publish after the npm release is live.

OpenClaw thanks @tdjackey for reporting.

Credited to tdjackey.

Questions

Which wrapper commands are involved in CVE-2026-29607?

The fix names the dispatch wrappers env, nice, nohup, stdbuf and timeout. Their chains now resolve to the inner executable path before an allow-always rule is saved.

Is there a workaround besides upgrading?

Yes. The advisory says to run with a stricter exec policy, ask=always or security=deny, until you move to 2026.2.22.

Does it affect the gateway only?

No. The advisory says both the gateway and the node-host execution approval persistence flows were affected.

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