Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious environment variable with shell metacharacters
-
ExploitOpenClaw writes unquoted variable to gateway.cmd
-
ExecutionScheduled task executes gateway.cmd script
-
ImpactInjected commands execute 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 | Local attacker access to OpenClaw versions prior to 2026.2.18. Requires ability to provide malicious environment variables through configuration before Windows Scheduled Task script generation and execution. No user interaction needed once config is supplied. |
| Impact | The real-world risk is moderate despite the 7.4 CVSS score. The CVSS vector (AV:L/AC:H/PR:N/UI:N) indicates local attack vector with high complexity, meaning the attacker needs local access or the ability to influence configuration files, and the exploitation requires specific conditions to be met during scheduled task generation. The PR:N (no privileges required) suggests attackers don't need authentication, but the local vector constrains the attack surface significantly compared to network-exploitable vulnerabilities. No EPSS score or KEV listing is mentioned, suggesting this is not being actively exploited in the wild. The availability of a patch (commit dafe52e8cf1a041d898cfb304a485fa05e5f58fb) reduces long-term risk for organizations with active patch management. The high complexity (AC:H) indicates this is not easily automatable and requires attacker knowledge of the specific environment and timing of scheduled task generation. This represents a moderate priority for organizations using OpenClaw on Windows systems, particularly where untrusted users can modify configuration files, but it is not an emergency-level threat requiring immediate action across all environments. |
| Exploit ScenarioDerived | An attacker with the ability to modify OpenClaw configuration files (either through compromised credentials, social engineering, or another vulnerability) injects shell metacharacters into environment variable values intended for scheduled task configuration. When OpenClaw generates the gateway.cmd batch file for a scheduled task, the malicious payload breaks out of the unquoted assignment context—for example, a value like 'innocent&calc.exe&' would result in calculator execution. When the Windows Task Scheduler subsequently executes this generated batch file at its scheduled time, the injected commands run with the privileges of the scheduled task, potentially allowing persistent access, data exfiltration, or lateral movement depending on the task's configured permissions. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 23, 2026
OpenClaw, an open-source game engine component, contains a command injection vulnerability in its Windows Scheduled Task script generation mechanism. Versions prior to 2026.2.18 write environment variables unquoted to gateway.cmd files, allowing attackers to inject shell metacharacters that break out of assignment context and execute arbitrary commands when the scheduled task runs. This vulnerability has a CVSS score of 7.4 (High) with local attack vector and high attack complexity, and a patch is currently available from the vendor.
RemediationAI
Upgrade OpenClaw to version 2026.2.18 or later, which contains the fix committed in https://github.com/openclaw/openclaw/commit/dafe52e8cf1a041d898cfb304a485fa05e5f58fb. Organizations should review the vendor security advisory at https://github.com/openclaw/openclaw/security/advisories/GHSA-pj5x-38rw-6fph for complete upgrade instructions and any additional security recommendations. Until patching is completed, organizations should implement compensating controls including restricting write access to OpenClaw configuration files to trusted administrators only, monitoring gateway.cmd file generation for suspicious content, and validating all environment variable values against a strict allowlist before they are incorporated into configuration. Additionally, consider running OpenClaw processes with minimal privileges to limit the impact of successful command injection attacks, and audit existing scheduled tasks generated by vulnerable versions for potentially malicious commands that may have been injected prior to patching.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
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: cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:*:*:*), specifically the Windows-based scheduled task automation component that generates gateway.cmd batch scripts. The root cause is classified as CWE-78 (OS Command Injection), arising from improper neutralization of special elements when constructing shell commands. When the application generates Windows batch files for scheduled tasks, it writes environment variable assignments without proper quoting or escaping. In Windows batch file syntax, unquoted values containing shell metacharacters such as ampersands (&), pipes (|), or carets (^) can break out of the assignment context and execute as separate commands. Config-provided environment variables that flow into this script generation process become injection vectors, allowing malicious payloads to be embedded in what should be benign configuration data.
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:H/PR:N/UI:N/S:U/C:H/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.18 contain a command injection vulnerability in Windows Scheduled Task script generation where environment variables are written unquoted to gateway.cmd, allowing shell metacharacters to break out of assignment context. Attackers can inject arbitrary commands through config-provided environment variables when the scheduled task script is generated and executed.
Executive ViewAI
OpenClaw game engine installations on Windows systems are vulnerable to local command injection through scheduled task files, allowing attackers with local access to execute arbitrary commands with system privileges. Organizations using this component should prioritize patching to prevent potential lateral movement, data exfiltration, or system compromise.
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.
Auth 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-14553
GHSA-pv5j-hvrw-38j6
NVD
CVE.org
Exploit-DB