CVE-2026-35666: OpenClaw's system.run allowlist can be bypassed through an unregistered time dispatch wrapper
OpenClaw before 2026.3.22 did not see through /usr/bin/time when it recorded allow-always exec approvals for system.run. An approval granted for one command through a time wrapper could be reused for a different inner command. Upgrade openclaw to 2026.3.22 or later.
Published Mar 26, 2026 · Updated Apr 10, 2026 · Analysis Oct 31, 2026
What an attacker can do
OpenClaw lets an operator approve a command once or "allow always", and later runs that match the approval skip the prompt. Approvals are bound to the executable that really runs. Wrappers such as nice, nohup, stdbuf and timeout were already unwrapped so the approval applied to the inner program. time was missing from that list (CWE-706, incorrect name resolution).
The result: an approval stored for a call like /usr/bin/time -p /bin/zsh -lc whoami was bound to the wrapper, not to the real binary. Later calls through the same wrapper could then run another command without a new prompt. The commit's regression test shows the case: an approved echo must not let id run through a time chain.
An attacker needs a low-privilege way to submit system.run requests, for example a prompt-injected agent or a limited operator, and a time-wrapper approval that already exists. They get commands run under the allowlist's approval state, which the CVSS 3.1 vector rates as full compromise of confidentiality, integrity and availability.
Who is affected
Affected: the openclaw npm package before 2026.3.22. The risk applies to setups that use allow-always exec approvals or the system.run allowlist. Check the installed version:
npm ls openclaw
openclaw --versionAlso review stored approvals that name /usr/bin/time.
openclaw
- Ecosystem
- npm
- Affected
- < 2026.3.22
- Fixed in
- 2026.3.22
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.22 or later; 2026.3.23 and 2026.3.23-2 keep the fix.
npm install -g openclaw@latestFix commit 39409b6a6dd4239deea682e626bac9ba547bfb14 adds time as a dispatch wrapper and an unwrapTimeInvocation helper. It skips flags such as -p, -a, -l, -q and -v, handles -f/--format and -o/--output values, and treats unknown flags as invalid so the call is not unwrapped. Approvals now bind to the inner executable. Remove any allow-always entries recorded for /usr/bin/time before the upgrade, since they are no longer meaningful.
How to tell if you were hit
Search your exec approval store and gateway logs for allow-always entries or system.run calls whose executable is /usr/bin/time or time. Compare each approved inner command with what actually ran, and look for commands that differ from what an operator approved. The advisory publishes no log signature. Unexpected shell, curl or id invocations launched under a time wrapper are the pattern to check.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Allow-always exec approvals did not unwrap /usr/bin/time, so an unregistered time wrapper could bypass executable binding and reuse approval state for the inner command.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected: < 2026.3.22
- Fixed: >= 2026.3.22
- Latest released tag checked:
v2026.3.23-2(630f1479c44f78484dfa21bb407cbe6f171dac87) - Latest published npm version checked:
2026.3.23-2
Fix Commit(s)
39409b6a6dd4239deea682e626bac9ba547bfb14
Release Status
The fix shipped in v2026.3.22 and remains present in v2026.3.23 and v2026.3.23-2.
Code-Level Confirmation
- src/infra/dispatch-wrapper-resolution.ts now unwraps /usr/bin/time and binds approvals to the real inner executable.
- src/infra/exec-approvals-allow-always.test.ts ships regression coverage for time-wrapper allow-always approval bypasses.
OpenClaw thanks @YLChen-007 for reporting.
Credited to YLChen-007.
Questions
- Is CVE-2026-35666 fixed in OpenClaw 2026.3.22?
Yes. 2026.3.22 is the first fixed version, and the fix is still present in 2026.3.23 and 2026.3.23-2.
- Which wrappers did OpenClaw already unwrap?
According to the fix commit, nice, nohup, stdbuf and timeout were already treated as transparent dispatch wrappers. time was the one that was missing.
- Do I need to remove old approvals?
It is a sensible precaution. Approvals recorded against /usr/bin/time bound the wrapper, not the real program. The sources do not require a cleanup step, so this is advice rather than a documented fix.
- Is it exploited in the wild?
No source reports exploitation, and it is not in CISA's KEV catalog. The EPSS score is 0.0037.
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
