Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessProvide malicious metacharacters to service script generation
-
ExploitUnsafe characters processed into gateway.cmd file
-
ExecutionInject arbitrary commands into Windows scheduled task
-
ImpactExecute unintended code with task privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | OpenClaw versions prior to 2026.2.19 on Windows. Requires local attacker with low-privilege access who controls service script generation arguments (via configuration, API, or management interface). No user interaction needed. Exploits unsafe cmd.exe metacharacter handling in gateway.cmd scheduled task files. |
| Impact | The CVSS 3.1 score of 7.1 (High) reflects significant impact but limited attack scope. The vector AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H indicates this requires local access and low-level privileges, with low complexity but no confidentiality impact. Real-world risk is moderate: while the technical barrier is low for local attackers who can control script generation arguments, the attack vector limitation (local access required) significantly reduces exposure compared to network-accessible vulnerabilities. No EPSS score or KEV listing is provided in the intelligence, suggesting no known active exploitation. The patch is available from the vendor (commit 280c6b117b2f0e24f398e5219048cd4cc3b82396), making this a manageable risk for organizations with standard patch management. Priority should be medium: patch during normal maintenance windows for systems where local users have limited trust, but expedite for multi-user or shared Windows environments where local privilege escalation chains are concerning. |
| Exploit ScenarioDerived | An authenticated local attacker with low-level privileges on a Windows system running vulnerable OpenClaw submits specially crafted arguments containing cmd metacharacters (such as & or |) or CR/LF sequences during service script generation. When OpenClaw generates the gateway.cmd file and Windows Task Scheduler executes the scheduled task, the injected commands break out of the intended context and execute arbitrary code with the privileges of the scheduled task, potentially leading to privilege escalation, data modification, or denial of service. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 19, 2026
OpenClaw contains a local command injection vulnerability in Windows scheduled task script generation that allows authenticated local attackers to inject arbitrary commands through unsafe handling of cmd metacharacters and CR/LF sequences in gateway.cmd files. OpenClaw versions prior to 2026.2.19 are affected. Attackers with control over service script generation arguments can execute unintended code in the scheduled task context with high impact to integrity and availability.
RemediationAI
Upgrade OpenClaw to version 2026.2.19 or later, which contains the fix implemented in commit 280c6b117b2f0e24f398e5219048cd4cc3b82396 available at https://github.com/openclaw/openclaw/commit/280c6b117b2f0e24f398e5219048cd4cc3b82396. Review the vendor security advisory at https://github.com/openclaw/openclaw/security/advisories/GHSA-mqr9-vqhq-3jxw for complete remediation guidance. Until patching is completed, restrict the ability for low-privileged users to control service script generation arguments, audit existing gateway.cmd scheduled tasks for suspicious command sequences, and implement strict input validation if custom script generation workflows are in use. Consider temporarily disabling automated scheduled task creation features if exploitation risk is deemed immediate in your environment.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability affects OpenClaw (cpe:2.3:a:openclaw:openclaw), an application that generates Windows scheduled task scripts with .cmd extensions. The root cause is CWE-78 (OS Command Injection), where the application fails to properly sanitize user-controlled input before incorporating it into gateway.cmd script files. Windows cmd.exe interprets special metacharacters (such as &, |, <, >, ^) and expansion-sensitive characters, as well as carriage return/line feed (CR/LF) sequences, which can break out of intended command context. When these unsanitized values are passed as arguments during service script generation, they enable command injection that executes when the scheduled task runs. This is a classic example of improper neutralization of special elements used in OS commands.
Know when Openclaw gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
OpenClaw versions prior to 2026.2.19 contain a local command injection vulnerability that allows authenticated attackers to execute arbitrary code through scheduled task scripts on Windows systems. This poses a direct threat to system integrity and availability for any organization running affected versions, particularly impacting automated processes and service operations that rely on these scheduled tasks.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Related Vulnerabilities in OpenClaw Command Injection Vulnerabilities
View all 5Auth bypass in OpenClaw voice-call extension before 2026.2.1. EPSS 0.68%. PoC and patch available.
Privilege escalation in OpenClaw (pre-2026.3.28) allows unauthenticated remote attackers to gain administrative access b
OpenClaw versions 2026.2.22 through 2026.2.24 contain a privilege escalation vulnerability that allows authenticated att
An authorization mismatch vulnerability in OpenClaw versions prior to 2026.3.1 allows authenticated users with operator.
OpenClaw versions prior to 2026.1.29 automatically establish WebSocket connections to attacker-controlled gateway URLs e
Path traversal in OpenClaw through version 2026.3.23 enables unauthenticated remote attackers to read arbitrary files in
Authentication bypass in OpenClaw before 2026.5.3 allows remote attackers with low privileges to receive agent responses
Directory-context bypass in OpenClaw before 2026.8.1 allows authenticated attackers with user interaction to reuse an 'a
Unauthenticated access to the noVNC observer interface in OpenClaw's Docker sandbox browser allows anyone who can reach
Authentication bypass in OpenClaw's MCP loopback interface allows local low-privilege attackers to escalate to owner-lev
OpenClaw versions before 2026.2.26 allow authenticated attackers to write arbitrary files outside the workspace director
OpenClaw versions prior to 2026.2.22 contain a shell environment variable injection vulnerability in the system.run func
EUVD-2026-13027
GHSA-mqr9-vqhq-3jxw
NVD
CVE.org
EPSS
VulDB
Exploit-DB