Description
OpenClaw versions prior to 2026.2.19 contain an allowlist bypass vulnerability in the exec safeBins policy that allows attackers to write arbitrary files using short-option payloads. Attackers can bypass argument validation by attaching short options like -o to whitelisted binaries, enabling unauthorized file-write operations that should be denied by safeBins checks.
Problem types
CWE-184: Incomplete List of Disallowed Inputs
Product status
Any version before 2026.2.19
2026.2.19 (semver)
Credits
xelitte (@FailButWin)
Redgrave961
References
github.com/...enclaw/security/advisories/GHSA-3x3x-h76w-hp98 (GitHub Security Advisory (GHSA-3x3x-h76w-hp98))
github.com/...ommit/cfe8457a0f4aae5324daec261d3b0aad1461a4bc (Patch Commit #1)
github.com/...ommit/bafdbb6f112409a65decd3d4e7350fbd637c7754 (Patch Commit #2)
github.com/...ommit/fec48a5006eab37c6a5821726ccaeec886486b13 (Patch Commit #3)
www.vulncheck.com/...a-short-option-bypass-in-exec-allowlist (VulnCheck Advisory: OpenClaw < 2026.2.19 - Arbitrary File Write via Short-Option Bypass in exec Allowlist)