Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2026-53822

CVE-2026-53822: Openclaw Command Injection Vulnerability

CVE-2026-53822 is a command injection flaw in Openclaw that allows attackers to bypass security controls by rebuilding command arguments after approval. This article covers technical details, affected versions, and mitigation.

Published:

CVE-2026-53822 Overview

CVE-2026-53822 is a command injection vulnerability in OpenClaw versions prior to 2026.5.18. The flaw resides in the shell wrapper logic, where the argv array can change between the approval phase and the execution phase. Attackers with low-privilege network access can rebuild command arguments after the allowlist check passes, executing unapproved command shapes that bypass the intended security controls. The vulnerability combines a Time-of-Check Time-of-Use (TOCTOU) race condition [CWE-367] with command injection [CWE-77] characteristics.

Critical Impact

Authenticated network attackers can bypass command allowlist enforcement and execute arbitrary command shapes, leading to full confidentiality, integrity, and availability compromise of the host process.

Affected Products

  • OpenClaw (Node.js distribution) — all versions prior to 2026.5.18
  • Deployments using OpenClaw shell wrapper allowlist approval
  • Applications embedding OpenClaw as a command execution gateway

Discovery Timeline

  • 2026-06-12 - CVE-2026-53822 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2026-53822

Vulnerability Analysis

OpenClaw provides a shell wrapper that validates command invocations against an allowlist before execution. The vulnerability stems from a separation between the approval step and the execution step. Between these two operations, the argv array backing the command is mutable. An attacker controlling the calling context can mutate or rebuild the arguments after the allowlist check has succeeded but before the spawn syscall consumes them. This produces a command shape that the allowlist would have rejected, effectively bypassing the security boundary the wrapper was designed to enforce.

The issue maps to two complementary weakness classes. [CWE-367] describes the TOCTOU race between argument inspection and argument use. [CWE-77] describes the resulting command injection, since the executed command no longer corresponds to the approved invocation. Refer to the VulnCheck Command Modification Advisory for the documented exploitation path.

Root Cause

The wrapper inspects argument values at approval time but does not freeze, copy, or canonicalize the array prior to execution. Because the approved structure and the executed structure are derived from the same mutable reference, any code path that can mutate the array between the two operations defeats the policy.

Attack Vector

Exploitation requires network reachability and low-privilege authentication. The attacker submits an approved command, then manipulates the argument array — through concurrent code paths, prototype manipulation, or shared references — so that the executed command differs from the approved command. No user interaction is required.

No verified public proof-of-concept code is available. See the GitHub Security Advisory GHSA-2j8v-hwgc-x698 for vendor-supplied technical details.

Detection Methods for CVE-2026-53822

Indicators of Compromise

  • Process execution records where the OpenClaw shell wrapper spawns child processes with argument vectors that do not match any entry in the configured allowlist.
  • Unexpected child processes (shells, interpreters, network utilities) parented by the OpenClaw runtime, particularly outside business hours.
  • Application logs showing successful allowlist approvals followed by execution telemetry inconsistent with the approved arguments.

Detection Strategies

  • Instrument the wrapper to log both the approved argv snapshot and the post-spawn argv actually consumed, then alert on divergence.
  • Apply behavioral process-lineage analytics to identify anomalous descendants of the OpenClaw Node.js process.
  • Hunt for repeated authenticated calls from a single principal that produce variable command shapes, indicating probing of the race window.

Monitoring Recommendations

  • Forward Node.js application logs and host process telemetry to a centralized analytics platform for correlation across the approval and execution events.
  • Track the EPSS trend for CVE-2026-53822, currently 0.962%, alongside vendor advisory updates.
  • Enable file integrity monitoring on OpenClaw installation paths and allowlist configuration files.

How to Mitigate CVE-2026-53822

Immediate Actions Required

  • Upgrade OpenClaw to version 2026.5.18 or later on every affected host and container image.
  • Audit existing allowlist configurations and remove entries that accept untrusted argument values.
  • Revoke and rotate credentials for any low-privilege accounts able to reach the OpenClaw interface during the exposure window.
  • Restrict network access to the OpenClaw service to authenticated, trusted callers only.

Patch Information

The vendor has released a fix in OpenClaw 2026.5.18. The patch is distributed through the project's Node.js package channel. Review the GitHub Security Advisory GHSA-2j8v-hwgc-x698 for the authoritative remediation guidance and changelog.

Workarounds

  • Wrap calls to OpenClaw so that the argv array is deep-copied and frozen before approval and reused by reference at execution, eliminating the mutation window.
  • Apply strict input validation on all caller-supplied arguments before they reach the wrapper, treating the allowlist as defense-in-depth rather than the sole control.
  • Run the OpenClaw process under a dedicated, least-privilege service account with constrained filesystem and network capabilities to limit blast radius if bypass occurs.
bash
# Upgrade OpenClaw to the patched release
npm install openclaw@2026.5.18 --save-exact

# Verify installed version
npm ls openclaw

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.