Description
OpenClaw version 2026.2.22 prior to 2026.2.23 contain an arbitrary code execution vulnerability in shell-env that allows attackers to execute attacker-controlled binaries by exploiting trusted-prefix fallback logic for the $SHELL variable. An attacker can influence the $SHELL environment variable on systems with writable trusted-prefix directories such as /opt/homebrew/bin to execute arbitrary binaries in the OpenClaw process context.
Problem types
CWE-829: Inclusion of Functionality from Untrusted Control Sphere
Product status
2026.2.22 (semver) before 2026.2.23
Credits
tdjackey
References
github.com/...enclaw/security/advisories/GHSA-p4wh-cr8m-gm6c (GitHub Security Advisory (GHSA-p4wh-cr8m-gm6c))
github.com/...ommit/ff10fe8b91670044a6bb0cd85deb736a0ec8fb55 (Patch Commit)
www.vulncheck.com/...onment-variable-trusted-prefix-fallback (VulnCheck Advisory: OpenClaw 2026.2.22 < 2026.2.23 - Arbitrary Binary Execution via $SHELL Environment Variable Trusted Prefix Fallback)