OpenClaw before 2026.5.12 contains a TOCTOU-class shell option parsing flaw (CWE-367, CVSS 8.8) that lets a network-accessible, low-privileged attacker execute arbitrary commands by combining POSIX shell flags in a way that passes allowlist validation at check-time but slips through revalidation at run-time. For teams running AI agents, RCE at the agent execution layer is especially damaging because agent processes typically hold credentials for connected services, file system access, and broad API permissions — a successful exploit effectively hands the attacker the keys to the entire automation stack. OpenClaw's history amplifies urgency: 155 prior CVEs in this package and its skills ecosystem was actively abused to deliver credential-stealing malware (AIID #1368). Patch to 2026.5.12 immediately; if patching is blocked, disable the shell execution feature in OpenClaw's configuration and restrict service access to trusted network sources only.
What is the risk?
High risk for any organization running OpenClaw-based AI agents with network accessibility. The vulnerability requires only low privileges and no user interaction, lowering the exploitation bar to any authenticated user or compromised account. While no public exploit or CISA KEV listing exists yet, the combination of CVSS 8.8, low attack complexity, network vector, and OpenClaw's established track record of active abuse makes this a credible near-term threat. The package's 4 downstream dependents limit broader ecosystem blast radius, but organizations with OpenClaw deployed in production agent workflows should treat this as urgent regardless of KEV status.
How does the attack unfold?
What systems are affected?
How severe is it?
What is the attack surface?
What should I do?
1 step-
1) Patch OpenClaw to 2026.5.12 or later immediately — this release addresses the shell option parsing bypass directly. 2) If immediate patching is blocked, disable the exec/shell execution feature in OpenClaw's configuration to eliminate the vulnerable code path entirely. 3) Apply network-level controls to restrict access to the OpenClaw service to trusted IP ranges or internal networks only. 4) Audit exec invocation logs for anomalous combined POSIX flag patterns (single-hyphen multi-character flags such as -ce in exec calls) that may indicate active exploitation attempts. 5) Inventory OpenClaw skills installed in your environment and cross-check against known-malicious indicators per AIID #1368 and Bitdefender research on the ClawHub ecosystem. 6) Run OpenClaw under a least-privilege service account without direct access to sensitive credentials or production systems.
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-53806?
OpenClaw before 2026.5.12 contains a TOCTOU-class shell option parsing flaw (CWE-367, CVSS 8.8) that lets a network-accessible, low-privileged attacker execute arbitrary commands by combining POSIX shell flags in a way that passes allowlist validation at check-time but slips through revalidation at run-time. For teams running AI agents, RCE at the agent execution layer is especially damaging because agent processes typically hold credentials for connected services, file system access, and broad API permissions — a successful exploit effectively hands the attacker the keys to the entire automation stack. OpenClaw's history amplifies urgency: 155 prior CVEs in this package and its skills ecosystem was actively abused to deliver credential-stealing malware (AIID #1368). Patch to 2026.5.12 immediately; if patching is blocked, disable the shell execution feature in OpenClaw's configuration and restrict service access to trusted network sources only.
Is CVE-2026-53806 actively exploited?
No confirmed active exploitation of CVE-2026-53806 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-53806?
1) Patch OpenClaw to 2026.5.12 or later immediately — this release addresses the shell option parsing bypass directly. 2) If immediate patching is blocked, disable the exec/shell execution feature in OpenClaw's configuration to eliminate the vulnerable code path entirely. 3) Apply network-level controls to restrict access to the OpenClaw service to trusted IP ranges or internal networks only. 4) Audit exec invocation logs for anomalous combined POSIX flag patterns (single-hyphen multi-character flags such as -ce in exec calls) that may indicate active exploitation attempts. 5) Inventory OpenClaw skills installed in your environment and cross-check against known-malicious indicators per AIID #1368 and Bitdefender research on the ClawHub ecosystem. 6) Run OpenClaw under a least-privilege service account without direct access to sensitive credentials or production systems.
What systems are affected by CVE-2026-53806?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, agentic pipelines, tool-using LLM systems, AI automation workflows.
What is the CVSS score for CVE-2026-53806?
CVE-2026-53806 has a CVSS v3.1 base score of 8.8 (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 Compliance Controls Affected
What are the technical details?
Original Advisory
OpenClaw before 2026.5.12 contains a shell option parsing vulnerability that allows combined POSIX shell flags to bypass exec revalidation checks. Attackers can exploit this by using combined shell options to execute inline shell content without intended allowlist validation, potentially enabling unauthorized command execution when the affected feature is enabled.
Exploitation Scenario
An attacker with valid low-privilege credentials — obtained through credential reuse, phishing, or a compromised developer account — submits a crafted request to an OpenClaw AI agent endpoint accessible over the network. The request includes a shell command payload wrapped in combined POSIX flag notation (e.g., -ce 'malicious_command'). OpenClaw's exec revalidation check evaluates the shell flags at validation time and passes them as allowed, but at execution time the combined flag parsing interprets the input differently, treating the payload as inline shell content to execute. The TOCTOU gap enables the bypass, and the command runs with the agent process's permissions. The attacker then reads environment variables to harvest API tokens, exfiltrates data to an external server, or installs a backdoor for persistent access — all operating from within the trusted context of a legitimate AI agent process.
Weaknesses (CWE)
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Primary
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Primary
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition CWE-367 — Time-of-check Time-of-use (TOCTOU) Race Condition: The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.
- [Implementation] The most basic advice for TOCTOU vulnerabilities is to not perform a check before the use. This does not resolve the underlying issue of the execution of a function on a resource whose state and identity cannot be assured, but it does help to limit the false sense of security given by the check.
- [Implementation] When the file being altered is owned by the current user and group, set the effective gid and uid to that of the current user and group when executing this statement.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 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