Home

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.

PUBLISHED Reserved 2026-03-10 | Published 2026-03-19 | Updated 2026-03-19 | Assigner VulnCheck




MEDIUM: 6.9CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

HIGH: 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Problem types

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (CWE-78)

Product status

Default status
unaffected

Any version before 2026.2.19
affected

Credits

tdjackey reporter

References

github.com/...enclaw/security/advisories/GHSA-mqr9-vqhq-3jxw (GitHub Security Advisory (GHSA-mqr9-vqhq-3jxw)) third-party-advisory

github.com/...ommit/280c6b117b2f0e24f398e5219048cd4cc3b82396 (Patch Commit) patch

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) third-party-advisory

cve.org (CVE-2026-31994)

nvd.nist.gov (CVE-2026-31994)

Download JSON