Description
OpenClaw before 2026.3.28 contains an environment variable sanitization vulnerability where GIT_TEMPLATE_DIR and AWS_CONFIG_FILE are not blocked in the host-env blocklist. Attackers can exploit approved exec requests to redirect git or AWS CLI behavior through attacker-controlled configuration files to execute untrusted code or load malicious credentials.
Problem types
CWE-184: Incomplete List of Disallowed Inputs
Product status
Any version before 2026.3.28
2026.3.28 (semver)
Credits
Nicky (@nicky-cc)
References
github.com/...enclaw/security/advisories/GHSA-m866-6qv5-p2fg (GitHub Security Advisory (GHSA-m866-6qv5-p2fg))
www.vulncheck.com/...-missing-environment-variable-blocklist (VulnCheck Advisory: OpenClaw < 2026.3.28 - Code Execution via Missing Environment Variable Blocklist)