Description
OpenClaw versions prior to 2026.2.23 contain an allowlist bypass vulnerability in system.run guardrails that allows authenticated operators to execute unintended commands. When /usr/bin/env is allowlisted, attackers can use env -S to bypass policy analysis and execute shell wrapper payloads at runtime.
Problem types
CWE-184: Incomplete List of Disallowed Inputs
Product status
Any version before 2026.2.23
Credits
tdjackey
References
github.com/...enclaw/security/advisories/GHSA-48wf-g7cp-gr3m (GitHub Security Advisory (GHSA-48wf-g7cp-gr3m))
github.com/...ommit/a1c4bf07c6baad3ef87a0e710fe9aef127b1f606 (Patch Commit)
github.com/...ommit/3f923e831364d83d0f23499ee49961de334cf58b (Patch Commit)
www.vulncheck.com/...w-allowlist-exec-guard-bypass-via-env-s (VulnCheck Advisory: OpenClaw < 2026.2.23 - Allowlist Exec-Guard Bypass via env -S)