Skip to main content

Openclaw CVE-2026-22176

| EUVDEUVD-2026-13005 MEDIUM
OS Command Injection (CWE-78)
2026-03-19 VulnCheck GHSA-pj5x-38rw-6fph
6.1
CVSS 3.1 · NVD
View

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.

Impact

The CVSS 3.1 score of 6.1 (Medium severity) reflects Attack Vector Local, Attack Complexity Low, Privileges Required Low, with High Integrity impact and Low Availability impact. This vector correctly captures that an attacker with user-level permissions and local system access can alter the integrity of execution, but the CVSS does not account for the fact that Confidentiality is not impacted. The low attack complexity and requirement for only low privileges increase real-world risk, particularly in shared hosting, multi-tenant environments, or systems where untrusted applications run under the same user context. The availability of a vendor patch and public advisory via VulnCheck (a reputable vulnerability intelligence platform) indicates awareness in the security community, though the absence from CISA's KEV catalog suggests limited evidence of active exploitation in the wild. SSVC perspective: This is likely Automatable (environment variables can be controlled programmatically) and has Technical Impact on integrity and availability of scheduled tasks, placing it in a medium-priority tier for remediation—not critical, but not deferrable. Organizations running OpenClaw in privilege-separated environments or with strict input validation on environment variables face lower risk; those with permissive configurations face moderate risk.

Exploit ScenarioDerived

An attacker with local user access to a Windows system running OpenClaw crafts a malicious environment variable such as MYVAR=value&taskkill /f /im svchost.exe, then triggers OpenClaw to generate a scheduled task that uses this environment variable. When the gateway.cmd script is generated and later executed by the Windows Task Scheduler, the unquoted assignment SET MYVAR=value&taskkill /f /im svchost.exe is interpreted by cmd.exe as two separate commands: first the SET assignment, then the taskkill command. The attacker achieves arbitrary command execution with the privileges of the scheduled task account. No user interaction is required once the environment variable is set, making this exploitable through any mechanism that influences environment variables—such as compromised dependencies, supply-chain attacks on libraries that set variables, or lateral movement within a system.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 19, 2026

OpenClaw versions before 2026.2.19 allow local authenticated users to execute arbitrary commands by injecting shell metacharacters into environment variable values during Windows Scheduled Task script generation. The vulnerability stems from unquoted variable assignments in gateway.cmd that fail to sanitize special characters like &, |, ^, %, and !, enabling command injection when the task script runs. A patch is available to address this local privilege escalation risk.

Earlier versions of this analysis (1)
v1 Mar 19, 2026 - 01:30 CVSS 6.1

OpenClaw versions prior to 2026.2.19 contain a command injection vulnerability in Windows Scheduled Task script generation where environment variable values are written to gateway.cmd without proper quoting or escaping, allowing attackers with local access to inject shell metacharacters and achieve arbitrary command execution. An authenticated local attacker with low privileges can exploit this by crafting environment variable values containing characters like &, |, ^, %, or ! to break out of the assignment context and execute arbitrary commands when the scheduled task script runs. A patch is available from the vendor, and proof-of-concept information has been documented by VulnCheck; while this is not listed in CISA's Known Exploited Vulnerabilities catalog, the attack surface is local and privilege requirements are low, making it a practical concern for systems with multi-user access or where untrusted code can influence environment variables.

RemediationAI

Immediately upgrade OpenClaw to version 2026.2.19 or later, which includes the security patch addressing the unquoted environment variable assignment issue. The patch, committed at dafe52e8cf1a041d898cfb304a485fa05e5f58fb, implements proper quoting and escaping of environment variable values in the gateway.cmd script generation routine. Until patching is completed, administrators should restrict which users and processes can set or modify environment variables that feed into OpenClaw's scheduled task generation, enforce principle of least privilege for accounts running OpenClaw, and avoid deploying OpenClaw in environments where untrusted or third-party code executes with the same privileges. Code review of any custom integrations that set environment variables before invoking OpenClaw's task generation functions is recommended to ensure hostile or unexpected metacharacter sequences are filtered or validated.

Affected VersionsENISA

OpenClaw 0 <2026.2.19

Affected Packages

npm openclaw fix: 2026.2.19

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 stems from CWE-78 (Improper Neutralization of Special Elements used in an OS Command), a classic command injection flaw. The root cause lies in OpenClaw's Windows Scheduled Task script generation mechanism, which constructs a gateway.cmd batch file by directly interpolating environment variable values into unquoted SET KEY=VALUE statements without sanitization or escaping. In Windows batch scripting, special metacharacters such as & (command chaining), | (piping), ^ (escape character), % (variable expansion), and ! (delayed expansion in batch contexts) retain their special meaning even within unquoted assignment contexts. The affected product (cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:*:*:*) is vulnerable in all versions before 2026.2.19. Rather than safely quoting variable values (e.g., SET KEY="%VALUE%") or validating/escaping metacharacters, the code assumes environment variable content is safe, violating the principle of input validation.

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

NVD PRIMARY 6.1 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
Low

Lifecycle Timeline

2
Patch released
Mar 19, 2026 - 01:30 nvd
Patch available
CVE Published
Mar 19, 2026 - 01:00 nvd
MEDIUM 6.1

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2026-22176 presents moderate security risk, a OS command injection vulnerability rated CVSS 6.1. Exploitation could allow attackers to execute code or inject malicious input. A patch is available and should be applied during regular vulnerability management.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: deploy WAF rules, restrict network access, enable logging.

Threat Intelligence Overview

EPSS Score
0.1%
Top 65% exploitable
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

CVE-2026-28446 CRITICAL POC
9.4 Mar 05

Auth bypass in OpenClaw voice-call extension before 2026.2.1. EPSS 0.68%. PoC and patch available.

CVE-2026-33579 CRITICAL POC
9.4 Mar 31

Privilege escalation in OpenClaw (pre-2026.3.28) allows unauthenticated remote attackers to gain administrative access b

CVE-2026-32042 HIGH POC
8.8 Mar 21

OpenClaw versions 2026.2.22 through 2026.2.24 contain a privilege escalation vulnerability that allows authenticated att

CVE-2026-32051 HIGH POC
8.8 Mar 21

An authorization mismatch vulnerability in OpenClaw versions prior to 2026.3.1 allows authenticated users with operator.

CVE-2026-25253 HIGH POC
8.8 Feb 01

OpenClaw versions prior to 2026.1.29 automatically establish WebSocket connections to attacker-controlled gateway URLs e

CVE-2026-32846 HIGH POC
8.7 Mar 26

Path traversal in OpenClaw through version 2026.3.23 enables unauthenticated remote attackers to read arbitrary files in

CVE-2026-53857 HIGH POC
8.6 Jun 16

Authentication bypass in OpenClaw before 2026.5.3 allows remote attackers with low privileges to receive agent responses

CVE-2026-100530 HIGH POC
8.5 Sep 26

Directory-context bypass in OpenClaw before 2026.8.1 allows authenticated attackers with user interaction to reuse an 'a

CVE-2026-32064 HIGH POC
8.5 Mar 21

Unauthenticated access to the noVNC observer interface in OpenClaw's Docker sandbox browser allows anyone who can reach

CVE-2026-44118 HIGH POC
8.5 May 06

Authentication bypass in OpenClaw's MCP loopback interface allows local low-privilege attackers to escalate to owner-lev

CVE-2026-32055 HIGH POC
7.6 Mar 21

OpenClaw versions before 2026.2.26 allow authenticated attackers to write arbitrary files outside the workspace director

CVE-2026-32056 HIGH POC
7.5 Mar 21

OpenClaw versions prior to 2026.2.22 contain a shell environment variable injection vulnerability in the system.run func

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy