Description
OpenClaw versions prior to 2026.2.19 contain a local command injection vulnerability in Windows scheduled task script generation due to unsafe handling of cmd metacharacters and expansion-sensitive characters in gateway.cmd files. Local attackers with control over service script generation arguments can inject arbitrary commands by providing metacharacter-only values or CR/LF sequences that execute unintended code in the scheduled task context.
Problem types
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (CWE-78)
Product status
Any version before 2026.2.19
Credits
tdjackey
References
github.com/...enclaw/security/advisories/GHSA-mqr9-vqhq-3jxw (GitHub Security Advisory (GHSA-mqr9-vqhq-3jxw))
github.com/...ommit/280c6b117b2f0e24f398e5219048cd4cc3b82396 (Patch Commit)
www.vulncheck.com/...ment-handling-in-windows-scheduled-task (VulnCheck Advisory: OpenClaw < 2026.2.19 - Local Command Injection via Unsafe cmd Argument Handling in Windows Scheduled Task Script Generation)