CVE-2026-53865: OpenClaw: Workspace-derived service PATH could influence trash command selection
OpenClaw before 2026.5.2 could pick the wrong `trash` executable during maintenance, because a PATH derived from the workspace influenced the command lookup. An attacker who controls that workspace path can get a local program of their choice run. Upgrade to 2026.5.2.
Published Jun 18, 2026 · Analysis Nov 2, 2026
What an attacker can do
During maintenance tasks, OpenClaw runs a trash command. In affected versions the search path used to find it came partly from the workspace, so a trash binary placed in a workspace-controlled directory could be selected over the system one. This is an untrusted search path flaw (CWE-426). The advisory does not name the function or file involved, and does not explain how the workspace path reaches the service PATH.
The attacker needs write access to a location the workspace-derived path points to, and the affected maintenance feature must be enabled and reachable. The advisory states that this does not change OpenClaw's trusted-operator model: authenticated Gateway operators, installed plugins and intended local execution surfaces stay trusted. The real exposure is a Gateway where lower-trust input, such as a shared or untrusted workspace, can influence that path.
If it works, the planted program runs with the privileges of the OpenClaw process. The CVSS vector is local, low privileges, with high confidentiality and integrity impact, so the likely result is reading and changing data that process can reach. The advisory says actual impact depends on the operator's configuration.
Who is affected
The npm package openclaw below 2026.5.2. Exposure depends on whether the maintenance feature is enabled and whether untrusted users or content can influence the workspace paths. Check the installed version:
npm ls openclawFor a global install, use npm ls -g openclaw.
openclaw
- Ecosystem
- npm
- Affected
- < 2026.5.2
- Fixed in
- 2026.5.2
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.5.2, the first stable patched version.
npm install -g [email protected]Until you can upgrade, the advisory says to keep maintenance flows on trusted workspaces and fixed service paths. As general hardening it suggests narrow channel and tool allowlists, not sharing one Gateway between mutually untrusted users, and disabling the affected feature if you do not need it.
How to tell if you were hit
The advisory lists no indicators. Look for a trash executable in workspace directories or other non-system locations, and for OpenClaw maintenance runs that started a trash process from an unexpected path. Check process logs on the Gateway host for child processes of OpenClaw whose binary is not the system trash utility. Review who can write to workspaces on shared Gateways.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Workspace-derived service PATH could influence trash command selection. In affected versions, a workspace-derived environment path could select an unintended trash executable during maintenance.
This advisory is scoped to the named feature and configuration. It does not change OpenClaw's trusted-operator model: authenticated Gateway operators, installed plugins, and intentional local execution surfaces remain trusted unless a separate policy, approval, allowlist, sandbox, or auth boundary is crossed.
Impact
When the affected feature is enabled and reachable, this could run a local executable from a path the operator did not intend for maintenance tasks. Practical impact depends on the operator's configuration and whether lower-trust input can reach that path.
Patched Versions
The first stable patched version is 2026.5.2.
Mitigations
keep maintenance flows on trusted workspaces and fixed service paths until patched. As general hardening, keep channel and tool allowlists narrow, avoid sharing one Gateway between mutually untrusted users, and disable the affected feature when it is not needed.
Questions
- Is CVE-2026-53865 remotely exploitable?
The vector is local with low privileges. An attacker needs a way to influence the workspace-derived path, which on a shared Gateway may come from a lower-trust user or workspace.
- Which OpenClaw version fixes it?
2026.5.2 is the first stable patched version. Anything below it is affected.
- Does this break OpenClaw's trust model?
The advisory says no. Gateway operators, plugins and intended local execution stay trusted. The flaw matters when lower-trust input can reach the path used to find the trash command.
- Is it exploited in the wild?
No source read says so, and the entry has no CISA KEV data.
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
