CVE-2026-32009: OpenClaw: safeBins static default trusted dirs allow writable-dir binary hijack (`jq`)
OpenClaw 2026.2.23 and earlier trusted a static list of directories for `safeBins`, including `/usr/local/bin` and `/opt/homebrew/bin`. A same-name binary such as `jq` planted in one of them passes the allowlist and runs. Upgrade to openclaw 2026.2.24, which trusts only `/bin` and `/usr/bin` by default.
Published Mar 3, 2026 · Updated Mar 30, 2026 · Analysis Oct 31, 2026
What an attacker can do
In allowlist mode, safe bins like jq are approved by name. The trust decision looked only at whether the resolved executable sat in a trusted directory. The default list held package-manager and user-managed paths: /bin, /usr/bin, /usr/local/bin, /opt/homebrew/bin, /opt/local/bin, /snap/bin and /run/current-system/sw/bin. Many of these are writable without root on developer machines.
If an attacker already has write access to one of those directories, they can drop a malicious jq. When the agent runs jq, the allowlist check passes and the attacker's binary executes in the OpenClaw runtime context, with the user's rights. That bypasses the exec allowlist and can give command execution.
The precondition is demanding. The attacker must first write into a trusted host binary directory, which is why the maintainers rate it medium and the CVSS vectors show high privileges and high attack complexity. A compromised Homebrew package or a prior foothold are realistic paths.
Who is affected
openclaw (npm) versions up to and including 2026.2.23, when exec runs in allowlist mode with safe bins and the host has a writable directory among the default trusted ones, typically /usr/local/bin or /opt/homebrew/bin.
npm ls openclaw
ls -ld /usr/local/bin /opt/homebrew/binThe second command shows who can write to those directories.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.2.23
- Fixed in
- 2026.2.24
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.2.24:
npm install [email protected]The fix cuts the default safe-bin trusted directories to the immutable system paths /bin and /usr/bin. Package-manager and user paths now need an explicit opt-in through tools.exec.safeBinTrustedDirs. PATH entries are never trusted automatically. After upgrading, add a directory to tools.exec.safeBinTrustedDirs only if it is not writable by untrusted users.
How to tell if you were hit
Hash the jq and other safe-bin binaries in /usr/local/bin, /opt/homebrew/bin and similar directories and compare them with the package manager's own files. Look for recent modification times on binaries there, and for unexpected child processes of the OpenClaw process. Beam records agent shell commands, so a jq call that spawns odd network or file activity stands out.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
In openclaw<=2026.2.23, safe-bin trust in allowlist mode relied on static default trusted directories that included package-manager paths (notably /opt/homebrew/bin and /usr/local/bin). When a same-name binary (for example jq) is placed in one of those trusted default directories, safe-bin evaluation can be satisfied and execute the attacker-controlled binary.
Impact
This is an exec allowlist safeBins policy bypass that can lead to command execution in the OpenClaw runtime context. Severity is set to Medium given the required ability to write into trusted host binary directories.
Affected Packages / Versions
- Package:
openclaw(npm) - Vulnerable versions:
<= 2026.2.23 - Patched versions:
>= 2026.2.24(planned next npm release) - Latest published npm version at triage time (2026-02-24):
2026.2.23
Root Cause
- Default safe-bin trusted directories included package-manager/user-managed paths.
- Trust decision was directory-membership only for resolved executable paths.
Remediation
- Restrict default safe-bin trusted directories to immutable system paths:
/bin,/usr/bin. - Require explicit operator opt-in for package-manager/user paths via
tools.exec.safeBinTrustedDirs.
Fix Commit(s)
b67e600bff696ff2ed9b470826590c0ce6b3bb0a
Release Process Note
patched_versions is pre-set to the planned next release (2026.2.24). Once npm release 2026.2.24 is published, this advisory should be ready for publish without additional version edits.
OpenClaw thanks @tdjackey for reporting.
Publication Update (2026-02-25)
[email protected] is published on npm and contains the fix commit(s) listed above. This advisory now marks >= 2026.2.24 as patched.
Credited to tdjackey.
Questions
- Does CVE-2026-32009 need write access to the host?
Yes. The attacker must be able to write a same-name binary into a trusted default directory such as
/usr/local/binor/opt/homebrew/bin. That is why the maintainers rated it medium.- What are the new default trusted directories?
Only
/binand/usr/bin. Other directories need explicit opt-in withtools.exec.safeBinTrustedDirs.- Which version fixes it?
openclaw 2026.2.24, published on npm on 2026-02-25 according to the advisory update.
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
