{"id":"CVE-2026-31994","details":"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.","aliases":["GHSA-mqr9-vqhq-3jxw"],"modified":"2026-04-02T13:24:10.495747Z","published":"2026-03-19T02:16:04.493Z","references":[{"type":"ADVISORY","url":"https://github.com/openclaw/openclaw/security/advisories/GHSA-mqr9-vqhq-3jxw"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/openclaw-local-command-injection-via-unsafe-cmd-argument-handling-in-windows-scheduled-task"},{"type":"FIX","url":"https://github.com/openclaw/openclaw/commit/280c6b117b2f0e24f398e5219048cd4cc3b82396"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openclaw/openclaw","events":[{"introduced":"0"},{"fixed":"2c05cbb43e48ebad03626d3125746fb1b9a8520f"},{"fixed":"280c6b117b2f0e24f398e5219048cd4cc3b82396"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"2026.2.19"}]}}],"versions":["v0.1.0","v0.1.1","v0.1.2","v0.1.3","v1.0.4","v1.1.0","v1.2.0","v1.2.1","v1.2.2","v1.3.0","v2.0.0-beta1","v2.0.0-beta2","v2.0.0-beta3","v2.0.0-beta4","v2.0.0-beta5","v2026.1.10","v2026.1.11","v2026.1.11-1","v2026.1.11-2","v2026.1.11-3","v2026.1.12","v2026.1.12-2","v2026.1.13","v2026.1.14-1","v2026.1.15","v2026.1.16-2","v2026.1.20","v2026.1.21","v2026.1.22","v2026.1.23","v2026.1.24","v2026.1.24-1","v2026.1.29","v2026.1.30","v2026.1.5","v2026.1.5-1","v2026.1.5-2","v2026.1.5-3","v2026.1.8","v2026.1.9","v2026.2.1","v2026.2.12","v2026.2.13","v2026.2.14","v2026.2.15-beta.1","v2026.2.17","v2026.2.2","v2026.2.3","v2026.2.6","v2026.2.6-1","v2026.2.6-2","v2026.2.6-3","v2026.2.9"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31994.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}