CVE-2026-22173
Command Injection in OpenClaw Scheduled Task Script Generation
Publication date: 2026-03-23
Last updated on: 2026-03-23
Assigner: VulnCheck
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| openclaw | openclaw | to 2026.2.18 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-78 | The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
OpenClaw versions prior to 2026.2.18 have a command injection vulnerability in the Windows Scheduled Task script generation process.
This happens because environment variables are written unquoted to a script file named gateway.cmd, which allows shell metacharacters to break out of the intended assignment context.
Attackers can exploit this by injecting arbitrary commands through configuration-provided environment variables when the scheduled task script is generated and executed.
How can this vulnerability impact me? :
This vulnerability can allow an attacker to execute arbitrary commands on the affected system with the privileges of the scheduled task.
Such command injection can lead to full compromise of the system, including unauthorized access, data modification, or disruption of services.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
I don't know
What immediate steps should I take to mitigate this vulnerability?
I don't know