GHSA-82gw-wqw6-r2cf
Duplicate Advisory: Command Injection via unescaped environment assignments in Windows Scheduled Task script generation
Impact
## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-pj5x-38rw-6fph. This link is maintained to preserve external references. ## Original 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.
An attacker can exploit this with local access to the system, with a regular user account, without any action by a user. If it succeeds: high risk of data or systems being changed, low risk of outages.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | openclaw | <= 2026.2.17 | none recorded |
Weakness classification
References
- GitHub advisory
- https://github.com/advisories/GHSA-82gw-wqw6-r2cf
- https://github.com/openclaw/openclaw/security/advisories/GHSA-pj5x-38rw-6fph
- https://nvd.nist.gov/vuln/detail/CVE-2026-22176
- https://github.com/openclaw/openclaw/commit/dafe52e8cf1a041d898cfb304a485fa05e5f58fb
- https://www.vulncheck.com/advisories/openclaw-command-injection-via-unescaped-environment-variables-in-windows-scheduled-task