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
Share

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

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
Low

Lifecycle Timeline

4
EUVD ID Assigned
Mar 19, 2026 - 01:30 euvd
EUVD-2026-13005
Analysis Generated
Mar 19, 2026 - 01:30 vuln.today
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.

AnalysisAI

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.

Technical ContextAI

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.

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.

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-32064 HIGH POC
7.7 Mar 21

OpenClaw sandbox browser functionality launches x11vnc for noVNC observer sessions without requiring authentication, all

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

CVE-2026-32049 HIGH POC
7.5 Mar 21

OpenClaw versions prior to 2026.2.22 contain a resource exhaustion vulnerability where the application fails to consiste

CVE-2026-32048 HIGH POC
7.5 Mar 21

OpenClaw versions prior to 2026.3.1 contain a sandbox escape vulnerability that allows authenticated attackers with low

CVE-2026-25474 HIGH POC
7.5 Feb 19

OpenClaw versions 2026.1.30 and below fail to validate Telegram webhook secret tokens when `channels.telegram.webhookSec

Share

CVE-2026-22176 vulnerability details – vuln.today

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