RCE in Openclaw
CVE-2026-32056
OpenClaw versions prior to 2026.2.22 fail to sanitize shell startup environment variables HOME and ZDOTDIR in the system.run function, allowing attackers to bypass command allowlist protections. Remote attackers can inject malicious startup files such as .bash_profile or .zshenv to achieve arbitrary code execution before allowlist-evaluated commands are executed.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.006, 51.7th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Openclaw — versions 0, 2026.2.22
Weakness classification (CWE)
References
- GitHub Security Advisory (GHSA-xgf2-vxv2-rrmg) (vendor-advisory, third-party-advisory, Vendor Advisory)
- Patch Commit (Patch, patch)
- VulnCheck Advisory: OpenClaw < 2026.2.22 - Remote Code Execution via Shell Startup Environment Variable Injection in system.run (Third Party Advisory, third-party-advisory)