Description
OpenClaw before 2026.4.20 fails to properly reserve the OPENCLAW_ runtime-control environment namespace in workspace dotenv files, allowing attackers to override critical runtime variables. Malicious workspaces can set variables like OPENCLAW_GIT_DIR to manipulate trusted OpenClaw runtime behavior during source-update or installer flows.
Problem types
CWE-184: Incomplete List of Disallowed Inputs
Product status
Any version before 2026.4.20
2026.4.20 (semver)
Credits
foodlook
References
github.com/...enclaw/security/advisories/GHSA-hxvm-xjvf-93f3 (GitHub Security Advisory (GHSA-hxvm-xjvf-93f3))
github.com/...ommit/018494fa3ebb9145112e68b56fe1cb2e9f9a9ed6 (Patch Commit)
www.vulncheck.com/...amespace-collision-via-workspace-dotenv (VulnCheck Advisory: OpenClaw < 2026.4.20 - Environment Variable Namespace Collision via Workspace dotenv)