CVE-2026-31995
Received Received - Intake
Command Injection in OpenClaw Lobster Extension Enables Remote Execution

Publication date: 2026-03-19

Last updated on: 2026-03-19

Assigner: VulnCheck

Description
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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-19
Last Modified
2026-03-19
Generated
2026-05-27
AI Q&A
2026-03-19
EPSS Evaluated
2026-05-25
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
openclaw openclaw From 2026.1.21 (inc) to 2026.2.19 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

CVE-2026-31995 is a command injection vulnerability in the Lobster extension of OpenClaw versions prior to 2026.2.19 on Windows. When certain process spawn failures occur, the extension falls back to using the Windows shell (cmd.exe) with shell: true, which interprets commands. Attackers can exploit this fallback by injecting arbitrary commands through tool-provided arguments that are not properly sanitized, leading to execution of malicious commands.

The vulnerability arises because the fallback mechanism constructs OS commands using externally influenced input without properly neutralizing special elements, corresponding to CWE-78 (Improper Neutralization of Special Elements used in an OS Command).


How can this vulnerability impact me? :

This vulnerability can allow an attacker with local access and control over workflow arguments to execute arbitrary commands on a Windows system running vulnerable versions of OpenClaw. This can lead to unauthorized command execution, potentially compromising the integrity and availability of the affected system.

Because the vulnerability requires triggering a fallback path after a spawn failure and control over arguments, the risk is limited to scenarios where these conditions are met.


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

I don't know


How can this vulnerability be detected on my network or system? Can you suggest some commands?

[{'type': 'paragraph', 'content': "This vulnerability occurs specifically on Windows systems running OpenClaw versions from 2026.1.21 up to 2026.2.17 when the Lobster extension's Windows shell fallback mechanism is triggered due to spawn failures (errors ENOENT or EINVAL). Detection involves identifying if the vulnerable OpenClaw version is in use and if the fallback path with shell: true is being triggered."}, {'type': 'paragraph', 'content': 'Since the vulnerability depends on local operator-controlled workflow arguments triggering the fallback, detection can include monitoring for unexpected or suspicious command executions via cmd.exe that originate from OpenClaw processes.'}, {'type': 'paragraph', 'content': 'Specific commands to detect this vulnerability are not provided in the available resources. However, general detection steps could include:'}, {'type': 'list_item', 'content': 'Check the installed OpenClaw version to confirm if it is prior to 2026.2.19.'}, {'type': 'list_item', 'content': 'Monitor process creation events on Windows for cmd.exe executions spawned by OpenClaw or the Lobster extension.'}, {'type': 'list_item', 'content': 'Audit workflow arguments passed to OpenClaw for suspicious or unexpected input that could trigger command injection.'}] [1, 2]


What immediate steps should I take to mitigate this vulnerability?

The primary mitigation step is to upgrade OpenClaw to version 2026.2.19 or later, where the Windows shell fallback mechanism has been removed and replaced with a safer execution method that avoids using a shell.

If upgrading immediately is not possible, restrict or carefully validate all workflow arguments passed to OpenClaw to prevent injection of malicious commands.

Additionally, monitor and restrict the ability to trigger spawn failures that cause the fallback path to be used.

Ensure that only trusted users have permission to define or modify workflows that interact with the Lobster extension.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart