Description
OpenClaw versions prior to 2026.2.21 fail to filter dangerous process-control environment variables from config env.vars, allowing startup-time code execution. Attackers can inject variables like NODE_OPTIONS or LD_* through configuration to execute arbitrary code in the OpenClaw gateway service runtime context.
Problem types
CWE-15: External Control of System or Configuration Setting
Product status
Any version before 2026.2.21
2026.2.21 (semver)
Credits
tdjackey
Zhijie Zhang
References
github.com/...enclaw/security/advisories/GHSA-8fmp-37rc-p5g7 (GitHub Security Advisory (GHSA-8fmp-37rc-p5g7))
github.com/...enclaw/security/advisories/GHSA-w9j9-w4cp-6wgr (Patch Commit)
github.com/...ommit/2cdbadee1f8fcaa93302d7debbfc529e19868ea4 (VulnCheck Advisory: OpenClaw < 2026.2.21 - Environment Variable Injection via Config env.vars)
www.vulncheck.com/...-variable-injection-via-config-env-vars