CVE-2026-32017: OpenClaw exec allowlist safeBins short-option bypass could permit arbitrary file write
OpenClaw up to 2026.2.17 does not parse short options that carry an attached value when it validates safeBins arguments. A command such as sort -o/tmp/poc passes the check although -o writes a file. With tools.exec.security set to allowlist, this allows file writes the policy should block. Fixed in 2026.2.19.
Published Mar 3, 2026 · Updated Mar 30, 2026 · Analysis Nov 7, 2026
What an attacker can do
The safeBins list names binaries that may run without approval as long as their arguments look safe. The argument validation did not handle a short option followed directly by its value. In the advisory's example, sort -o/tmp/poc is accepted even though -o tells sort to write its output to a file. The weakness is CWE-184, an incomplete list of disallowed inputs.
Two conditions apply: tools.exec.security is allowlist, and tools.exec.safeBins includes an affected binary. Under those, a caller who can submit exec requests, including an agent following injected instructions, can create or overwrite files at paths of its choice with the process's privileges.
The advisory rates the issue moderate. A file write can still be turned into code execution if the target is a shell startup file, a cron entry or an agent config. Your risk depends on which binaries you put in safeBins.
Who is affected
The npm package openclaw up to and including 2026.2.17. Check the version.
npm ls openclawThen check your settings: tools.exec.security set to allowlist and a tools.exec.safeBins list that includes binaries with output or file options, such as sort.
openclaw
- Ecosystem
- npm
- Affected
- < 2026.2.19
- Fixed in
- 2026.2.19
- Check
npm ls openclaw
How to fix it
Upgrade to OpenClaw 2026.2.19 or later. The fixes are commits cfe8457, bafdbb6 and fec48a5. The advisory lists no workaround. Until you upgrade, you can remove binaries that have file-writing options from safeBins or avoid allowlist mode; those steps are my suggestions, not the advisory's.
How to tell if you were hit
Search exec logs for safe-bin commands with an attached short option value, such as sort -o/path, and for new files in unexpected places created by those commands. Compare safeBins entries with the options each tool supports. Beam records agent shell commands, so these calls would appear in its record and its rules can flag risky ones.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
OpenClaw exec allowlist/safeBins policy could be bypassed with attached short-option payloads (for example sort -o/tmp/poc), enabling file-write operations while still satisfying safeBins checks.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected versions:
<= 2026.2.17 - Latest published vulnerable version:
2026.2.17 - Patched in:
2026.2.19
Impact
When tools.exec.security=allowlist and tools.exec.safeBins included affected binaries, attached short-option payloads could bypass safeBins argument validation and permit file-write behavior that should have been denied.
Fix Commit(s)
- cfe8457a0f4aae5324daec261d3b0aad1461a4bc
- bafdbb6f112409a65decd3d4e7350fbd637c7754
- fec48a5006eab37c6a5821726ccaeec886486b13
OpenClaw thanks @FailButWin and @Redgrave961 for reporting.
Credited to xelitte777, Redgrave961.
Questions
- Which OpenClaw version fixes CVE-2026-32017?
2026.2.19 or later. Versions up to 2026.2.17 are affected.
- What configuration is vulnerable?
tools.exec.securityset toallowlistwith asafeBinslist that includes an affected binary.- What does the bypass allow?
File-write operations that the policy should block, for example through
sort -o/tmp/poc.
References
Read for this analysis:
- https://github.com/openclaw/openclaw/commit/bafdbb6f112409a65decd3d4e7350fbd637c7754
- https://github.com/openclaw/openclaw/commit/cfe8457a0f4aae5324daec261d3b0aad1461a4bc
- https://github.com/openclaw/openclaw/commit/fec48a5006eab37c6a5821726ccaeec886486b13
- https://nvd.nist.gov/vuln/detail/CVE-2026-32017
- https://www.vulncheck.com/advisories/openclaw-arbitrary-file-write-via-short-option-bypass-in-exec-allowlist
- https://github.com/advisories/GHSA-3x3x-h76w-hp98
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
