CVE-2026-53861: OpenClaw: allowlist bypass enables arbitrary shell exec
MEDIUMOpenClaw before 2026.5.6 contains an allowlist bypass in its macOS Swift exec feature that fails to recognize combined POSIX inline-command flags (e.g., '-rf' instead of '-r -f'), allowing shell commands outside the operator-configured allowlist to execute with the process's current privileges. For AI agent deployments where OpenClaw's command allowlist is the primary control boundary between the agent and the host OS, this represents a meaningful integrity risk — a low-privileged local user who can trigger user interaction can circumvent the intended command restrictions entirely, with high confidentiality and integrity impact (C:H/I:H). No public exploit exists and the vulnerability is not listed in CISA KEV, reducing immediate urgency, but agentic systems that depend on allowlist enforcement as their sandboxing model are directly exposed to this class of bypass. Operators should upgrade to OpenClaw 2026.5.6 or later immediately and audit existing allowlist configurations to verify that combined POSIX flag forms are accounted for in their access control policies.
What is the risk?
Medium risk overall, elevated in AI agent contexts. The local attack vector (AV:L) and user interaction requirement (UI:R) limit opportunistic exploitation, but the low privilege requirement (PR:L) and low attack complexity (AC:L) mean that any local user with basic access can exploit this with minimal effort. In AI agent deployments on macOS, the required 'user interaction' may be as simple as the agent itself invoking a tool or processing a prompt — effectively lowering the practical bar for exploitation. High confidentiality and integrity impact with no public exploit or KEV listing places this in the 'monitor and patch promptly' tier rather than emergency response for most organizations, but teams relying on OpenClaw's allowlist as a primary security boundary should treat this with elevated urgency.
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-
Upgrade to OpenClaw 2026.5.6 or later — this is the only complete fix per the security advisory.
-
If patching is not immediately possible, restrict OpenClaw execution to trusted users only and revoke local access for untrusted accounts on affected macOS hosts.
-
Audit existing allowlist configurations for combined POSIX flag coverage — if your allowlist entries assume space-separated flags (-r -f), add equivalent combined forms (-rf) as a temporary defensive measure.
-
Enable process auditing via macOS Unified Logging or the Endpoint Security Framework to detect unexpected command executions originating from the OpenClaw process.
-
Review whether AI agents in your environment invoke OpenClaw's Swift exec feature with operator-defined allowlists and prioritize patching those deployments first.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-53861?
OpenClaw before 2026.5.6 contains an allowlist bypass in its macOS Swift exec feature that fails to recognize combined POSIX inline-command flags (e.g., '-rf' instead of '-r -f'), allowing shell commands outside the operator-configured allowlist to execute with the process's current privileges. For AI agent deployments where OpenClaw's command allowlist is the primary control boundary between the agent and the host OS, this represents a meaningful integrity risk — a low-privileged local user who can trigger user interaction can circumvent the intended command restrictions entirely, with high confidentiality and integrity impact (C:H/I:H). No public exploit exists and the vulnerability is not listed in CISA KEV, reducing immediate urgency, but agentic systems that depend on allowlist enforcement as their sandboxing model are directly exposed to this class of bypass. Operators should upgrade to OpenClaw 2026.5.6 or later immediately and audit existing allowlist configurations to verify that combined POSIX flag forms are accounted for in their access control policies.
Is CVE-2026-53861 actively exploited?
No confirmed active exploitation of CVE-2026-53861 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-53861?
1. Upgrade to OpenClaw 2026.5.6 or later — this is the only complete fix per the security advisory. 2. If patching is not immediately possible, restrict OpenClaw execution to trusted users only and revoke local access for untrusted accounts on affected macOS hosts. 3. Audit existing allowlist configurations for combined POSIX flag coverage — if your allowlist entries assume space-separated flags (-r -f), add equivalent combined forms (-rf) as a temporary defensive measure. 4. Enable process auditing via macOS Unified Logging or the Endpoint Security Framework to detect unexpected command executions originating from the OpenClaw process. 5. Review whether AI agents in your environment invoke OpenClaw's Swift exec feature with operator-defined allowlists and prioritize patching those deployments first.
What systems are affected by CVE-2026-53861?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, AI agent deployments on macOS, local AI agent sandboxing, agentic code execution pipelines.
What is the CVSS score for CVE-2026-53861?
CVE-2026-53861 has a CVSS v3.1 base score of 6.6 (MEDIUM). The EPSS exploitation probability is 0.13%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
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 before 2026.5.6 contains an allowlist bypass vulnerability in the macOS Swift exec feature that misses combined POSIX inline-command flags. Attackers can execute shell content outside the intended allowlist check by using combined flag forms, potentially allowing unauthorized command execution depending on operator configuration.
Exploitation Scenario
An attacker with low-privileged local access on a macOS host running an OpenClaw-based AI agent constructs a request that triggers the agent's Swift exec feature using combined POSIX inline flags. For example, a command using '-rf' or '-la' combined forms bypasses the string-match or regex-based allowlist check that only accounts for space-separated flag variants. When a user interacts with the agent (or the agent itself invokes the exec path as part of a tool chain), OpenClaw executes the crafted command outside the intended sandbox. The attacker can then read sensitive files including agent configuration and credentials (C:H), or modify agent configuration files and inject malicious code into the AI agent's working directory to establish persistence (I:H), potentially pivoting to full host compromise through the agent's elevated tool access.
Weaknesses (CWE)
CWE-184 — Incomplete List of Disallowed Inputs: The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete.
- [Implementation] Do not rely exclusively on detecting disallowed inputs. There are too many variants to encode a character, especially when different environments are used, so there is a high likelihood of missing some variants. Only use detection of disallowed inputs as a mechanism for detecting suspicious activity. Ensure that you are using other protection mechanisms that only identify "good" input - such as lists of allowed inputs - and ensure that you are properly encoding your outputs.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N References
Timeline
Related Vulnerabilities
CVE-2026-30741 9.8 OpenClaw: RCE via request-side prompt injection
Same package: openclaw CVE-2026-53838 9.8 OpenClaw: approval scope bypass via reconnection state
Same package: openclaw CVE-2026-28451 9.3 OpenClaw: SSRF via Feishu extension exposes internal services
Same package: openclaw GHSA-cwj3-vqpp-pmxr 8.8 openclaw: Model bypasses authz to persist unsafe config
Same package: openclaw CVE-2026-35674 8.8 OpenClaw: scope bypass enables full agent admin takeover
Same package: openclaw