# "Claw Chain" Exploits Expose OpenClaw Agents to Complete Compromise Through Sandbox Escape and Privilege Escalation


Cybersecurity researchers have disclosed a critical chain of four vulnerabilities in OpenClaw that, when exploited together, permit attackers to break out of sandbox restrictions, steal credentials, escalate privileges to owner level, and establish persistent backdoors. The vulnerabilities, collectively termed "Claw Chain" by security firm Cyera, represent a significant threat to organizations deploying OpenClaw as an autonomous agent framework—particularly those relying on it for infrastructure automation, code execution, and operational decision-making.


## The Threat


OpenClaw is an open-source framework for building and orchestrating autonomous AI agents with the ability to execute commands, access systems, and modify configurations. The four disclosed flaws undermine the core security boundary that prevents untrusted agent code from escaping sandbox restrictions and gaining unauthorized system access. What makes this threat particularly dangerous is that the vulnerabilities are designed to be chained—each flaw builds on the previous one, creating a complete attack pipeline that transforms a minor code execution issue into full system compromise.


The exploitation flow begins with an attacker establishing initial code execution inside the OpenShell managed sandbox through a malicious plugin, prompt injection, or compromised external input. From that foothold, the attacker leverages two TOCTOU (time-of-check/time-of-use) race conditions to read files and execute unapproved commands. Next, they exploit an improper access control flaw to impersonate an owner-level client and assume administrative control over the agent runtime. Finally, they weaponize another race condition to write arbitrary files, plant backdoors, and establish persistence.


The implications are severe: an attacker compromising a single OpenClaw agent instance could gain read access to all credentials, configuration files, and secrets accessible to that agent, then pivot to modifying system configurations, scheduling malicious cron jobs, and maintaining long-term control. Because each step in the attack chain mimics legitimate agent behavior, traditional security controls and monitoring systems may fail to detect the compromise.


## Severity and Impact


| Vulnerability | CVE | CVSS Score | Vector | Type | Authentication |

|---|---|---|---|---|---|

| Sandbox Write Bypass (TOCTOU) | CVE-2026-44112 | 9.6 | Race condition in mount root validation | Privilege Escalation / Persistence | Required |

| Sandbox Read Bypass (TOCTOU) | CVE-2026-44113 | 7.7 | Race condition in file access checks | Information Disclosure | Required |

| Heredoc Shell Expansion Bypass | CVE-2026-44115 | 8.8 | Incomplete input validation | Command Injection | Required |

| Owner Token Spoofing | CVE-2026-44118 | 7.8 | Client-controlled senderIsOwner flag | Privilege Escalation | Not Required |


The most critical flaw is CVE-2026-44118, which requires only loopback access to exploit and does not require prior authentication. An attacker with access to the local OpenClaw loopback interface can spoof an owner-level client claim and bypass authorization checks designed to restrict administrative operations to legitimate owners.


## Affected Products


  • OpenClaw versions prior to 2026.4.22
  • OpenShell managed sandbox backend (integrated with OpenClaw)

  • The vulnerabilities affect all deployments of OpenClaw that:

  • Run untrusted plugins or external integrations
  • Accept user input that is processed by agents
  • Use the OpenShell sandbox for agent code isolation
  • Expose the MCP loopback interface to multiple clients

  • ## Mitigations


    Immediate Actions:

  • Upgrade to OpenClaw version 2026.4.22 or later immediately—this release includes fixes for all four vulnerabilities
  • Validate that the MCP loopback runtime is now issuing separate owner and non-owner bearer tokens in the updated version
  • Confirm that the senderIsOwner header is no longer being emitted or trusted by the framework

  • Network-Level Protections:

  • Restrict access to the OpenClaw loopback interface (typically port 3000 or custom configured) to localhost only
  • Implement firewall rules to prevent external clients from reaching the MCP loopback runtime
  • Segment agent instances from sensitive systems and credentials using network-level isolation

  • Agent-Level Hardening:

  • Audit all installed plugins and external integrations; remove or sandbox any that are not strictly necessary
  • Implement input validation and sanitization for any user-supplied data processed by agents
  • Monitor agent configuration files for unauthorized modifications, particularly cron job additions
  • Restrict agent runtime permissions to the minimum necessary for intended operations

  • Detection and Monitoring:

  • Monitor system files and configuration directories for unexpected modification attempts
  • Watch for suspicious file access patterns or repeated TOCTOU race conditions in audit logs
  • Alert on any agent-initiated operations that modify the agent's own configuration or cron schedule
  • Review agent credentials and secrets immediately after updating—assume compromise if the agent had untrusted code execution

  • ## References


  • OpenClaw Security Advisory: https://github.com/openclaw/openclaw/security/advisories
  • Cyera Threat Research: "Claw Chain: The Four-Step OpenClaw Exploitation Pipeline"
  • CVE-2026-44112: https://nvd.nist.gov/vuln/detail/CVE-2026-44112
  • CVE-2026-44113: https://nvd.nist.gov/vuln/detail/CVE-2026-44113
  • CVE-2026-44115: https://nvd.nist.gov/vuln/detail/CVE-2026-44115
  • CVE-2026-44118: https://nvd.nist.gov/vuln/detail/CVE-2026-44118

  • ## HackWire Analysis


    The Claw Chain disclosure highlights a critical blind spot in AI agent security: the assumption that sandbox isolation is sufficient to contain untrusted code. These vulnerabilities reveal that TOCTOU race conditions—a class of bug thought to be well-understood and largely patched out of modern systems—remain viable attack vectors when combined with agent-specific architectural assumptions. The fact that CVE-2026-44118 doesn't even require authentication, only loopback access, suggests that OpenClaw's threat model may have underestimated the risk of compromised plugins and MCP integrations.


    The "each step looks like normal agent behavior" detail from Cyera is particularly damning for defenders. Traditional endpoint detection and response (EDR) systems are tuned to detect anomalous system behavior, but an agent reading files, executing commands, and modifying configurations is entirely normal. This is the fundamental challenge of securing autonomous systems: legitimate actions and malicious actions occupy the same behavioral space. Organizations running OpenClaw need to move beyond behavioral detection and implement identity-based controls—ensuring that each operation is authorized not just at the API level but cryptographically, using properly separated tokens for owner and non-owner contexts.


    For anyone running OpenClaw in production, the update to 2026.4.22 is non-negotiable. But equally important is a post-mortem: audit your plugin sources, document what agents have access to, and ask yourself whether a compromised agent in your infrastructure could reach your crown jewels. If it can, you're one TOCTOU race condition away from a full compromise. — HackWire Editorial


    ## Related Coverage


  • Read more in our [Vulnerabilities](https://www.hackwire.news/category/vulnerabilities) coverage
  • Cross-reference with [Breaches](https://www.hackwire.news/category/breaches) and [Malware](https://www.hackwire.news/category/malware)
  • Stay current via the [HackWire homepage](https://www.hackwire.news/)