CVE-2026-22169: OpenClaw's non-default safeBins sort configuration can bypass intended allowlist approval constraints
In OpenClaw up to 2026.2.21-2, adding sort to tools.exec.safeBins (not the default) lets the --compress-program option run an external helper, bypassing the safe-bin approval limits in allowlist mode. Upgrade the npm package openclaw to 2026.2.22. Installs that never added sort to safeBins are not exposed.
Published Mar 3, 2026 · Updated Mar 18, 2026 · Analysis Oct 31, 2026
What an attacker can do
tools.exec.safeBins lists binaries that OpenClaw may run in allowlist mode under constrained arguments, so the agent needs no per-command approval. GNU sort has a --compress-program option that names a program to run for temporary file compression. If sort is a safe bin, a command such as sort with --compress-program passes the safe-bin check but starts a different program of the caller's choosing.
That turns a binary meant to be harmless into a way to run arbitrary commands, skipping the approval step. The condition is that an operator explicitly added sort to safeBins. The attacker also needs to steer the agent's command line, for example through a prompt injection in content the agent reads. The CVSS 3.1 vector (AV:L, AC:H, PR:H) reflects those prerequisites, and the advisory rates it medium. The advisory does not give an example command.
Who is affected
npm package openclaw, versions before 2026.2.22 (2026.2.21-2 and earlier). Only configurations where sort appears in tools.exec.safeBins with allowlist mode are affected. Check both the version and your config:
npm ls openclawThen search your OpenClaw config for the safeBins list and look for sort.
openclaw
- Ecosystem
- npm
- Affected
- < 2026.2.22
- Fixed in
- 2026.2.22
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.2.22, which includes fix commit 57fbbaebca4d34d17549accf6092ae26eb7b605c.
npm install [email protected]The advisory names no other workaround. Removing sort from tools.exec.safeBins closes the path on older versions, since the flaw only applies when it is listed.
How to tell if you were hit
Search agent command logs for sort invocations containing --compress-program (or an abbreviated form of it) and for child processes whose parent is sort. Review the safeBins entry in your config for sort. Beam records agent shell commands, and its rules can flag a command like this for review.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
When sort is explicitly added to tools.exec.safeBins (non-default), the --compress-program option can invoke an external helper and bypass the intended safe-bin approval constraints in allowlist mode.
Affected Packages / Versions
- Package:
openclaw(npm) - Vulnerable versions:
<=2026.2.21-2 - Latest published npm version checked during triage:
2026.2.21-2(as of February 22, 2026) - Patched in planned next release:
2026.2.22
Fix Commit(s)
57fbbaebca4d34d17549accf6092ae26eb7b605c
Release Process Note
patched_versions is pre-set to the planned next release (>=2026.2.22). Once that npm release is published, the advisory can be published directly.
OpenClaw thanks @tdjackey for reporting.
Credited to tdjackey.
Questions
- Is the default OpenClaw configuration affected by CVE-2026-22169?
No. The advisory says the flaw applies only when sort has been explicitly added to tools.exec.safeBins, which is not the default.
- Which version fixes it?
openclaw 2026.2.22. Versions up to 2026.2.21-2 are listed as vulnerable.
- Is CVE-2026-22169 exploited in the wild?
No source says so. It is not in CISA's KEV catalog. The EPSS score in the data is 0.0021.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More OpenClaw vulnerabilities
All OpenClaw entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
