Skip to main content

Openclaw CVE-2026-31995

| EUVDEUVD-2026-13029 MEDIUM
OS Command Injection (CWE-78)
2026-03-19 VulnCheck GHSA-fg3m-vhrr-8gj6
5.3
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 5.3 with vector AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L indicates moderate severity with important nuances. Attack Vector is Local, meaning an attacker must have local system access, which significantly reduces exposure in cloud and remote-only environments. Attack Complexity is High, suggesting exploitation requires non-trivial conditions (the spawn failure must occur and shell fallback must be triggered). Privilege Level is Low, meaning any authenticated user can attempt exploitation, making it viable in multi-user systems. The impact profile shows High Integrity (arbitrary code execution) but no Confidentiality impact and Low Availability impact, indicating this is primarily a privilege escalation or lateral movement vector rather than a system-wide denial-of-service. The vulnerability does not appear in the CISA KEV (Known Exploited Vulnerabilities) catalog based on available intelligence, and no public proof-of-concept is documented, suggesting limited active exploitation in the wild. However, the fundamental simplicity of command injection exploitation means threat actors will likely develop POCs once the patch details are analyzed. The real-world risk is moderate for organizations running OpenClaw in multi-user or containerized environments where local code execution by lower-privileged users is possible; isolated single-user deployments face lower risk. This is a legitimate priority that warrants timely patching but does not require emergency response procedures.

Exploit ScenarioDerived

An attacker with local user access on a Windows system running OpenClaw submits a workflow job that intentionally triggers a process spawn failure (for example, by requesting an invalid or non-existent tool). When the system falls back to shell: true execution, the attacker controls the workflow arguments and injects a payload such as 'tool_arg | powershell -Command (malicious payload)' or 'tool_arg & del C:\critical\file.txt'. The cmd.exe interpreter processes these metacharacters, breaking out of the intended command context and executing the injected commands with the privileges of the OpenClaw process. While the CVSS High Attack Complexity rating suggests this is not trivial, the condition (spawn failure) can be reliably engineered, and no POC is currently documented in public sources, meaning the attacker must develop or adapt existing command injection techniques.

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 prior to 2026.2.19 allow local attackers with limited privileges to execute arbitrary commands through the Lobster extension's Windows shell fallback mechanism by injecting malicious arguments into workflow processes. The vulnerability exploits cmd.exe command interpretation when spawn operations fail and trigger shell execution, enabling command injection with potential impact on system integrity and availability. A patch is available for affected versions.

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

A command injection vulnerability exists in OpenClaw versions 2026.1.21 through 2026.2.18 within the Lobster extension's Windows shell fallback mechanism, allowing local attackers with limited privileges to execute arbitrary commands by manipulating workflow arguments. When process spawning fails and the system defaults to shell execution with shell: true, attackers can exploit cmd.exe command interpretation semantics to inject malicious commands. A patch is available from the vendor, and this vulnerability affects the core command execution pipeline when Windows shell fallback is triggered.

RemediationAI

Upgrade OpenClaw immediately to version 2026.2.19 or later, which includes the fix deployed in commit ba7be018da354ea9f803ed356d20464df0437916 as documented in the vendor repository at https://github.com/openclaw/openclaw/commit/ba7be018da354ea9f803ed356d20464df0437916. For environments unable to patch immediately, implement local access controls to restrict which users can execute OpenClaw workflows and provide workflow arguments, reducing the attack surface to trusted users only. Additionally, review and audit all existing OpenClaw workflows for untrusted argument sources and consider disabling the Lobster extension if it is not actively required. Monitor system logs for cmd.exe spawning with unusual command-line arguments originating from OpenClaw processes.

Affected VersionsENISA

OpenClaw 2026.1.21 <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

The vulnerability resides in the Lobster extension component of OpenClaw (CPE: cpe:2.3:a:openclaw:openclaw), which handles tool invocation and argument processing. The root cause is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command), a classic command injection flaw. The technical issue occurs in the Windows shell fallback mechanism that activates when initial process spawning attempts fail. When spawn() fails and the code reverts to shell: true execution mode, user-controlled workflow arguments are passed directly to cmd.exe without proper sanitization or escaping. The cmd.exe command interpreter interprets metacharacters such as pipes (|), command separators (&, &&, ||), redirects (>, <), and other shell operators, allowing attackers to break out of the intended command context and execute arbitrary payloads. This is a Windows-specific vulnerability that exploits the difference between direct process execution and shell-mediated execution.

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 5.3 MEDIUM
AV:L/AC:H/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
High
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 5.3

DescriptionCVE.org

OpenClaw versions 2026.1.21 prior to 2026.2.19 contain a command injection vulnerability in the Lobster extension's Windows shell fallback mechanism that allows attackers to inject arbitrary commands through tool-provided arguments. When spawn failures trigger shell fallback with shell: true, attackers can exploit cmd.exe command interpretation to execute malicious commands by controlling workflow arguments.

Executive ViewAI

Why It Matters

CVE-2026-31995 presents moderate security risk, a OS command injection vulnerability rated CVSS 5.3. 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 70% 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

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
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-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-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

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