Command injection in OpenClaw - CVE-2026-31994

 

Command injection in OpenClaw - CVE-2026-31994

Published: May 1, 2026


Vulnerability identifier: #VU128847
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-31994
CWE-ID: CWE-77
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: OpenClaw
Affected software:
OpenClaw

Detailed vulnerability description

The vulnerability allows a local user to execute unintended commands.

The vulnerability exists due to improper neutralization of special elements in gateway.cmd script generation in src/daemon/schtasks.ts when generating Windows scheduled task scripts from user-controlled arguments or environment-derived values. A local user can supply specially crafted metacharacter or line-break-containing values to execute unintended commands.

The issue is limited to Windows deployments and requires control over values that feed service script generation.


How to mitigate CVE-2026-31994

Install security update from vendor's website.

Sources