CVE-2026-22169: OpenClaw: safeBins allowlist bypass enables command exec
MEDIUMOpenClaw, an AI agent framework that gives LLM-driven agents controlled shell access, ships a safeBins allowlist meant to restrict which external programs an agent can invoke — but a flaw in how the sort command's compress-program option is validated lets an attacker leverage an already-allowlisted sort entry to chain in arbitrary external programs, fully defeating the sandbox. The blast radius is narrow today (only 4 known downstream dependents, EPSS at 0.00197 — near-zero absolute exploitation probability despite the 'top 90th percentile' framing, no public exploit or Nuclei template, and CISA's SSVC verdict is TRACK, not act-now), but the technical severity is real: CVSS 6.7 with confidentiality, integrity, and availability all rated High once triggered, since it yields arbitrary command execution as the agent process. This matters most for teams running OpenClaw agents under high-privilege service accounts or in CI/CD contexts where sort was enabled as a 'safe' utility. Patch to OpenClaw 2026.2.22 or later; until then, audit tools.exec.safeBins for sort and remove it, and monitor agent process trees for unexpected children spawned via compress-program.
What is the risk?
Medium overall risk. The CVSS 6.7 score with full CIA impact reflects a genuine sandbox-escape once triggered, but the attack requires PR:H (attacker already needs high local privileges) and a specific misconfiguration (sort explicitly added to safeBins) — a narrow deployment precondition, not a default-exposed flaw. No public exploit code, no Nuclei template, no KEV listing, and CISA SSVC rates it TRACK rather than Act. EPSS of 0.00197 is effectively negligible in absolute terms. Package risk score of 0/100 and absent OpenSSF Scorecard data indicate limited maturity signal for the ecosystem generally. Net assessment: a real privilege-escalation/sandbox-bypass bug worth patching on a normal cycle, not an emergency, unless combined with another vulnerability that grants the prerequisite high-privilege foothold.
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?
1 step-
Upgrade to OpenClaw >= 2026.2.22 (fix in commit 57fbbae). If immediate upgrade isn't possible: remove sort from tools.exec.safeBins, or enforce a policy layer that strips/denies the --compress-program flag before it reaches the shell. Audit all agent safeBins configurations for other utilities with pass-through 'helper program' style options (--exec, -exec, --compress-program, etc.), since the same allowlist-bypass class could recur elsewhere. For detection, alert on child processes spawned by sort that resolve to binaries outside the intended allowlist, and monitor process ancestry for OpenClaw agent processes spawning unexpected executables. Since PR:H is a precondition, also review why the executing account holds elevated privileges and apply least-privilege as a compensating control.
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-22169?
OpenClaw, an AI agent framework that gives LLM-driven agents controlled shell access, ships a safeBins allowlist meant to restrict which external programs an agent can invoke — but a flaw in how the sort command's compress-program option is validated lets an attacker leverage an already-allowlisted sort entry to chain in arbitrary external programs, fully defeating the sandbox. The blast radius is narrow today (only 4 known downstream dependents, EPSS at 0.00197 — near-zero absolute exploitation probability despite the 'top 90th percentile' framing, no public exploit or Nuclei template, and CISA's SSVC verdict is TRACK, not act-now), but the technical severity is real: CVSS 6.7 with confidentiality, integrity, and availability all rated High once triggered, since it yields arbitrary command execution as the agent process. This matters most for teams running OpenClaw agents under high-privilege service accounts or in CI/CD contexts where sort was enabled as a 'safe' utility. Patch to OpenClaw 2026.2.22 or later; until then, audit tools.exec.safeBins for sort and remove it, and monitor agent process trees for unexpected children spawned via compress-program.
Is CVE-2026-22169 actively exploited?
No confirmed active exploitation of CVE-2026-22169 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-22169?
Upgrade to OpenClaw >= 2026.2.22 (fix in commit 57fbbae). If immediate upgrade isn't possible: remove sort from tools.exec.safeBins, or enforce a policy layer that strips/denies the --compress-program flag before it reaches the shell. Audit all agent safeBins configurations for other utilities with pass-through 'helper program' style options (--exec, -exec, --compress-program, etc.), since the same allowlist-bypass class could recur elsewhere. For detection, alert on child processes spawned by sort that resolve to binaries outside the intended allowlist, and monitor process ancestry for OpenClaw agent processes spawning unexpected executables. Since PR:H is a precondition, also review why the executing account holds elevated privileges and apply least-privilege as a compensating control.
What systems are affected by CVE-2026-22169?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, sandboxed tool execution, CI/CD agentic pipelines.
What is the CVSS score for CVE-2026-22169?
CVE-2026-22169 has a CVSS v3.1 base score of 6.7 (MEDIUM). The EPSS exploitation probability is 0.20%.
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.T0112.000 Local AI Agent Compliance Controls Affected
What are the technical details?
Original Advisory
OpenClaw versions prior to 2026.2.22 contain an allowlist bypass vulnerability in the safeBins configuration that allows attackers to invoke external helpers through the compress-program option. When sort is explicitly added to tools.exec.safeBins, remote attackers can bypass intended safe-bin approval constraints by leveraging the compress-program parameter to execute unauthorized external programs.
Exploitation Scenario
An attacker who already holds high (but not full admin) privileges on a host running an OpenClaw agent — for example, a compromised CI service account or a malicious insider with limited shell access — finds that the agent's tools.exec.safeBins allowlist includes sort for legitimate data-processing tasks. The attacker invokes the agent's sort tool with a crafted --compress-program argument pointing at an arbitrary binary or script; because compress-program isn't validated against the allowlist, the agent executes it with the same permissions as the agent process. From there the attacker achieves full compromise of confidentiality, integrity, and availability on the host — reading credentials or config the agent can access, tampering with agent state or connected tool configurations, or pivoting to other systems reachable under the agent's identity.
Weaknesses (CWE)
CWE-78 — Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'): The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
- [Architecture and Design] If at all possible, use library calls rather than external processes to recreate the desired functionality.
- [Architecture and Design, Operation] Run the code in a "jail" or similar sandbox environment that enforces strict boundaries between the process and the operating system. This may effectively restrict which files can be accessed in a particular directory or which commands can be executed by the software. OS-level examples include the Unix chroot jail, AppArmor, and SELinux. In general, managed code may provide some protection. For example, java.io.FilePermission in the Java SecurityManager allows the software to specify restrictions on file operations. This may not be a feasible solution, and it only limits the impact to the operating system; the rest of the application may still be subject to compromise. Be careful to avoid CWE-243 and other weaknesses related to jails.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:H/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