# CVE-2026-22176: OpenClaw < 2026.2.19 - Command Injection via Unescaped Environment Variables 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:L/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.75%, higher than 56% of CVEs (2026-12-01)
- Published: 2026-03-03T21:50:05.000Z
- Modified: 2026-06-23T16:13:49.077Z
- Also known as: GHSA-pj5x-38rw-6fph
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

OpenClaw versions prior to 2026.2.19 contain a command injection vulnerability in Windows Scheduled Task script generation where environment variables are written to gateway.cmd using unquoted set KEY=VALUE assignments, allowing shell metacharacters to break out of assignment context. Attackers can inject arbitrary commands through environment variable values containing metacharacters like &, |, ^, %, or ! to achieve command execution when the scheduled task script is generated and executed.

(As written by CVE List.)

## Affected

- OpenClaw OpenClaw: before 2026.2.19 (not affected: 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:L/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/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-pj5x-38rw-6fph> (mitigation, vendor-advisory, web)
- <https://github.com/openclaw/openclaw/commit/dafe52e8cf1a041d898cfb304a485fa05e5f58fb> (patch, web)
- <https://www.vulncheck.com/advisories/openclaw-command-injection-via-unescaped-environment-variables-in-windows-scheduled-task> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22176> (advisory)
- <https://github.com/openclaw/openclaw> (package)

## Sources

- CVE List: [CVE-2026-22176](https://www.cve.org/CVERecord?id=CVE-2026-22176), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-pj5x-38rw-6fph](https://github.com/advisories/GHSA-pj5x-38rw-6fph), CC-BY-4.0, modified 2026-03-20
- NVD: [CVE-2026-22176](https://nvd.nist.gov/vuln/detail/CVE-2026-22176), Public domain, modified 2026-06-17

---

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