RCE in Openclaw
CVE-2026-22176
OpenClaw versions prior to 2026.2.19 contain a command injection vulnerability in Windows Scheduled Task script generation where environment variables are written to gateway.cmd using unquoted set KEY=VALUE assignments, allowing shell metacharacters to break out of assignment context. Attackers can inject arbitrary commands through environment variable values containing metacharacters like &, |, ^, %, or ! to achieve command execution when the scheduled task script is generated and executed.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L.
EPSS exploit prediction
EPSS 0.007, 55.2th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Openclaw — versions 0, 2026.2.19
Weakness classification (CWE)
References
- GitHub Security Advisory (GHSA-pj5x-38rw-6fph) (vendor-advisory, Mitigation, third-party-advisory, Vendor Advisory)
- Patch Commit (Patch, patch)
- VulnCheck Advisory: OpenClaw < 2026.2.19 - Command Injection via Unescaped Environment Variables in Windows Scheduled Task Script Generation (Third Party Advisory, third-party-advisory)