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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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)
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
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
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
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
Lifecycle Timeline
2DescriptionCVE.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
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.
Apply vendor patch. If patching is delayed: deploy WAF rules, restrict network access, enable logging.
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
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
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
OpenClaw versions prior to 2026.2.22 contain a resource exhaustion vulnerability where the application fails to consiste
OpenClaw versions prior to 2026.3.1 contain a sandbox escape vulnerability that allows authenticated attackers with low
EUVD-2026-13029
GHSA-fg3m-vhrr-8gj6
NVD
CVE.org
EPSS
VulDB
Exploit-DB