Description
OpenClaw before 2026.4.22 contains an exec allowlist analysis vulnerability allowing shell expansion hiding in unquoted heredoc bodies. Attackers can bypass allowlist validation by embedding shell expansion tokens in heredoc bodies to execute unapproved commands at runtime.
Problem types
CWE-184: Incomplete List of Disallowed Inputs
Product status
Any version before 2026.4.22
2026.4.22 (semver)
Credits
vladimir tokarev (@VladimirEliTokarev)
References
github.com/...enclaw/security/advisories/GHSA-x3h8-jrgh-p8jx (GitHub Security Advisory (GHSA-x3h8-jrgh-p8jx))
github.com/...ommit/b2e8b7d4bb2f22eaa16f5c4b07547774e90b65a5 (Patch Commit)
www.vulncheck.com/...in-unquoted-heredocs-via-exec-allowlist (VulnCheck Advisory: OpenClaw < 2026.4.22 - Shell Expansion Bypass in Unquoted Heredocs via Exec Allowlist)