Description
OpenClaw versions prior to 2026.2.22 contain an arbitrary shell execution vulnerability in shell environment fallback that trusts the unvalidated SHELL path from the host environment. An attacker with local environment access can inject a malicious SHELL variable to execute arbitrary commands with the privileges of the OpenClaw process.
Problem types
CWE-426: Untrusted Search Path
Product status
Any version before 2026.2.22
2026.2.22 (semver)
Credits
Athul Jayaram (@athuljayaram)
References
github.com/...enclaw/security/advisories/GHSA-f8mp-vj46-cq8v (GitHub Security Advisory (GHSA-f8mp-vj46-cq8v))
github.com/...ommit/25e89cc86338ef475d26be043aa541dfdb95e52a (Patch Commit)
www.vulncheck.com/...-unvalidated-shell-environment-variable (VulnCheck Advisory: OpenClaw < 2026.2.22 - Arbitrary Shell Execution via Unvalidated SHELL Environment Variable)