{"id":"CVE-2026-22176","published":"2026-03-19T01:00:42Z","modified":"2026-06-23T16:13:49Z","title":"OpenClaw < 2026.2.19 - Command Injection via Unescaped Environment Variables in Windows Scheduled Task Script Generation","vendor":"OpenClaw","product":"OpenClaw","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0074,"percentile":0.55512,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/openclaw/openclaw/security/advisories/GHSA-pj5x-38rw-6fph","tags":["vendor-advisory"]},{"url":"https://github.com/openclaw/openclaw/commit/dafe52e8cf1a041d898cfb304a485fa05e5f58fb","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/openclaw-command-injection-via-unescaped-environment-variables-in-windows-scheduled-task","tags":["third-party-advisory"]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":11.1},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"openclaw","affectedVersions":[{"vendor":"OpenClaw","product":"OpenClaw","versions":["< 2026.2.19"]}],"fixedVersions":[{"vendor":"OpenClaw","product":"OpenClaw","versions":["2026.2.19"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-23T16:44:22.121263Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"openclaw","vulnerableRanges":["<2026.2.19"],"patched":["2026.2.19"],"from":["GHSA-pj5x-38rw-6fph"],"provenance":"source"}],"summary":{"text":"The OpenClaw product, prior to version 2026.2.19, has a command injection flaw in its Windows Scheduled Task script generation, where environment variables are written unquoted into gateway.cmd. An attacker who can supply environment variable values containing shell metacharacters (such as &, |, ^, %, or !) can break out of the assignment and execute arbitrary commands when the scheduled task script is generated and run, which requires local access with low privileges and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:14Z"},"euvd":{"id":"EUVD-2026-13005","exploited":false,"provenance":"source"}}