OS Command Injection in OpenClaw - CVE-2026-22176
Published: May 1, 2026
OpenClaw
Detailed vulnerability description
The vulnerability allows a remote user to execute arbitrary commands.
The vulnerability exists due to command injection in gateway.cmd generation in src/daemon/schtasks.ts when processing config-provided environment variable values for Windows Scheduled Task installation. A remote user can supply specially crafted environment variable values containing shell metacharacters to execute arbitrary commands.
Exploitation requires the attacker to influence environment values before gateway install or reinstall on Windows.