CVE-2026-53820: OpenClaw: exec denylist bypass via MCP session-spawn
MEDIUMOpenClaw before 2026.5.12 allows any authenticated local caller to bypass its command execution denylist by routing requests through the bundled MCP loopback session-spawn path, spawning a session with broader exec scope than intended (CWE-862: Missing Authorization). The attack requires only low privileges and no user interaction, making it a realistic insider threat or post-compromise escalation vector in AI agent deployments — even though the local attack vector keeps blast radius contained to hosts already running the agent. With 175 prior CVEs in this package, this is not an isolated lapse but a pattern of systemic security debt that should trigger a dependency review regardless of immediate patch status. Upgrade to 2026.5.12 immediately; if patching is blocked, restrict access to the MCP loopback session-spawn path at the host or container boundary and audit agent process logs for unexpected exec scope escalations.
What is the risk?
Medium risk overall, elevated for AI agent pipeline environments. The CVSS 6.6 score accurately captures the local-only constraint, but 'low privilege, low complexity, no user interaction' means that any authenticated user or compromised LLM-driven process can trigger this reliably. In multi-tenant AI engineering environments or automated agentic pipelines where OpenClaw acts as an execution engine, this bar is trivially cleared. The integrity HIGH component is the operative concern — not data theft, but unauthorized system modification or persistent configuration changes. The 175 CVEs on this package is an unusually high count and signals that OpenClaw has structural security debt that multiplies risk beyond this single finding.
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.5.12 or later; fix confirmed in vendor advisory GHSA-qh2f-99mv-mrcf.
-
Workaround: If patching is not immediately feasible, restrict process and network access to the MCP loopback session-spawn endpoint at the host firewall or container security policy level; deny calls to the loopback MCP path from all callers except explicitly required service accounts.
-
Detection: Review process execution logs for OpenClaw agent processes spawning commands outside the expected whitelist; alert on MCP session-spawn calls that result in exec invocations flagged by the denylist under normal operation.
-
Dependency audit: Given 175 CVEs in openclaw (pip), assess whether this package is justified in production; evaluate replacement with a more actively maintained agent framework.
-
Least privilege: Enforce OS-level process restrictions on all OpenClaw instances — drop unnecessary capabilities, apply seccomp/AppArmor profiles, and run under dedicated service accounts with minimal filesystem permissions.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-53820?
OpenClaw before 2026.5.12 allows any authenticated local caller to bypass its command execution denylist by routing requests through the bundled MCP loopback session-spawn path, spawning a session with broader exec scope than intended (CWE-862: Missing Authorization). The attack requires only low privileges and no user interaction, making it a realistic insider threat or post-compromise escalation vector in AI agent deployments — even though the local attack vector keeps blast radius contained to hosts already running the agent. With 175 prior CVEs in this package, this is not an isolated lapse but a pattern of systemic security debt that should trigger a dependency review regardless of immediate patch status. Upgrade to 2026.5.12 immediately; if patching is blocked, restrict access to the MCP loopback session-spawn path at the host or container boundary and audit agent process logs for unexpected exec scope escalations.
Is CVE-2026-53820 actively exploited?
No confirmed active exploitation of CVE-2026-53820 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-53820?
1. Patch: Upgrade OpenClaw to 2026.5.12 or later; fix confirmed in vendor advisory GHSA-qh2f-99mv-mrcf. 2. Workaround: If patching is not immediately feasible, restrict process and network access to the MCP loopback session-spawn endpoint at the host firewall or container security policy level; deny calls to the loopback MCP path from all callers except explicitly required service accounts. 3. Detection: Review process execution logs for OpenClaw agent processes spawning commands outside the expected whitelist; alert on MCP session-spawn calls that result in exec invocations flagged by the denylist under normal operation. 4. Dependency audit: Given 175 CVEs in openclaw (pip), assess whether this package is justified in production; evaluate replacement with a more actively maintained agent framework. 5. Least privilege: Enforce OS-level process restrictions on all OpenClaw instances — drop unnecessary capabilities, apply seccomp/AppArmor profiles, and run under dedicated service accounts with minimal filesystem permissions.
What systems are affected by CVE-2026-53820?
This vulnerability affects the following AI/ML architecture patterns: AI agent frameworks, Agentic pipelines, Multi-agent orchestration systems, MCP-based tool execution environments, Local AI agent deployments.
What is the CVSS score for CVE-2026-53820?
CVE-2026-53820 has a CVSS v3.1 base score of 6.6 (MEDIUM).
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.T0081 Modify AI Agent Configuration 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.12 contains an exec denylist bypass vulnerability in the bundle MCP loopback session-spawn path that allows authenticated callers to bypass intended command restrictions. Attackers can reach the affected bundled MCP session-spawn path to start sessions with broader command reach than intended.
Exploitation Scenario
An attacker with a low-privilege authenticated account on a host running OpenClaw — a compromised developer in an AI engineering environment, a malicious skill loaded via ClawHub, or an LLM agent that achieved prior code execution — identifies the MCP loopback session-spawn endpoint. By crafting a session-spawn request through this path rather than the standard exec API, the attacker bypasses the denylist check (CWE-862: the authorization step is simply not applied on this code path). The resulting session returns with a broader command scope, allowing execution of previously-blocked operations: invoking system binaries, reading or writing configuration files, or accessing credentials cached by the agent runtime. In a fully automated agentic pipeline, a compromised LLM could autonomously trigger this path to escalate its own tool access without human awareness, then use the expanded access to exfiltrate API keys or modify downstream agent behavior.
Weaknesses (CWE)
CWE-862 — Missing Authorization: The product does not perform an authorization check when an actor attempts to access a resource or perform an action.
- [Architecture and Design] Divide the product into anonymous, normal, privileged, and administrative areas. Reduce the attack surface by carefully mapping roles with data and functionality. Use role-based access control (RBAC) [REF-229] to enforce the roles at the appropriate boundaries. Note that this approach may not protect against horizontal authorization, i.e., it will not protect a user from attacking others with the same role.
- [Architecture and Design] Ensure that access control checks are performed related to the business logic. These checks may be different than the access control checks that are applied to more generic resources such as files, connections, processes, memory, and database records. For example, a database may restrict access for medical records to a specific database user, but each record might only be intended to be accessible to the patient and the patient's doctor [REF-7].
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L References
Timeline
Related Vulnerabilities
CVE-2026-30741 9.8 OpenClaw: RCE via request-side prompt injection
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 CVE-2026-53811 8.8 OpenClaw: privilege escalation via identity spoofing
Same package: openclaw