OS Command Injection in OpenClaw - CVE-2026-22176

 

OS Command Injection in OpenClaw - CVE-2026-22176

Published: May 1, 2026


Vulnerability identifier: #VU128848
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-22176
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

OpenClaw

How to mitigate CVE-2026-22176

Install security update from vendor's website.

OpenClaw - update to 2026.2.19

External References

Related Security Bulletins