Description
OpenClaw before 2026.5.2 contains an environment variable injection vulnerability where workspace .env STATE_DIRECTORY could influence bundled runtime dependency roots. Attackers can manipulate the STATE_DIRECTORY variable to load runtime dependencies from unintended local paths, potentially executing malicious code during dependency resolution.
Problem types
Product status
Any version before 2026.5.2
2026.5.2 (semver)
Credits
侯海飞 (@feynman-hou)
References
github.com/...enclaw/security/advisories/GHSA-wc84-j36w-pw4x (GitHub Security Advisory (GHSA-wc84-j36w-pw4x))
www.vulncheck.com/...ia-state-directory-environment-variable (VulnCheck Advisory: OpenClaw < 2026.5.2 - Arbitrary Runtime Dependency Loading via STATE_DIRECTORY Environment Variable)