# CVE-2026-31994: OpenClaw < 2026.2.19 - Local Command Injection via Unsafe cmd Argument Handling in Windows Scheduled Task Script Generation

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 53% of CVEs (2026-12-01)
- Published: 2026-03-03T21:37:29.000Z
- Modified: 2026-06-23T16:14:22.640Z
- Also known as: GHSA-mqr9-vqhq-3jxw
- Weaknesses: CWE-78, CWE-116
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- OpenClaw OpenClaw: before 2026.2.19
- openclaw (npm): before 2026.2.19

## Every score

- VulnCheck: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/openclaw/openclaw/security/advisories/GHSA-mqr9-vqhq-3jxw> (vendor-advisory, web)
- <https://github.com/openclaw/openclaw/commit/280c6b117b2f0e24f398e5219048cd4cc3b82396> (patch, web)
- <https://www.vulncheck.com/advisories/openclaw-local-command-injection-via-unsafe-cmd-argument-handling-in-windows-scheduled-task> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-31994> (advisory)
- <https://github.com/openclaw/openclaw> (package)

## Sources

- CVE List: [CVE-2026-31994](https://www.cve.org/CVERecord?id=CVE-2026-31994), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-mqr9-vqhq-3jxw](https://github.com/advisories/GHSA-mqr9-vqhq-3jxw), CC-BY-4.0, modified 2026-03-19
- NVD: [CVE-2026-31994](https://nvd.nist.gov/vuln/detail/CVE-2026-31994), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-31994 · Whole record: https://cve.day/CVE-2026-31994.json · Rebuilt by cve.day 2026-11-25T22:59:16.160Z
