GHSA-3jx4-q2m7-r496: OpenClaw: Hardlink alias checks could bypass workspace-only file boundaries in specific configurations
OpenClaw up to 2026.2.24 could follow a hardlink inside the workspace that points at a file outside it, when workspace-only filesystem restrictions are on. That let an agent read or modify files beyond the workspace boundary. Fixed in openclaw 2026.2.25. The default setting, tools.fs.workspaceOnly off, is not the affected configuration.
Published Mar 4, 2026 · Analysis Nov 14, 2026
What an attacker can do
Workspace-only mode is meant to confine the agent's file tools to one directory. The boundary check validated the path but did not reject a final file that is a hardlink. A hardlink is a second directory entry for the same file, so a link inside the workspace can point at a file elsewhere on disk, and the path check passes.
The advisory covers the read, write and edit tools, the workspace-only apply_patch read and write paths, and the sandbox mount-root path-safety checks. Through such an alias, files outside the workspace could be read (confidentiality) or changed (integrity).
The attacker needs a hardlink inside the workspace that targets the file. Creating one needs that file to be on the same filesystem and accessible to the creator. An agent steered by a malicious repo or prompt could be told to create it, or the repo itself might ship one. The affected case is a deployment that deliberately turned on workspace-only restrictions, since tools.fs.workspaceOnly is off by default. That is the very deployment that relies on this boundary to keep secrets such as SSH keys or dotfiles out of the agent's reach.
Who is affected
The openclaw npm package at 2026.2.24 and earlier, where tools.fs.workspaceOnly is enabled, or where the sandbox and workspace-only apply_patch checks are in use. With the default (off), the workspace boundary is not in force. Check the version and setting:
npm ls openclawThen check your OpenClaw config for tools.fs.workspaceOnly.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.2.24
- Fixed in
- 2026.2.25
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.2.25:
npm install [email protected]The fix, commit 04d91d0, makes the boundary validation reject hardlinked final-file aliases for the workspace-only read, write and edit checks, for apply_patch paths, and for sandbox mount-root path checks. Regression tests cover apply_patch, the workspace fs tools and the sandbox fs bridge. The advisory lists no workaround.
How to tell if you were hit
Search the workspace for regular files with a link count above one that you did not create:
find . -type f -links +1A hit whose other link lives outside the workspace deserves a look. Review agent file reads and writes for paths that resolve outside the workspace. Beam records agent file access and shell commands, and its rules can flag access to sensitive paths, which helps spot a hardlink-based escape.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
In certain workspace-restricted configurations, OpenClaw could follow hardlink aliases inside the workspace that reference files outside the workspace boundary.
By default, tools.fs.workspaceOnly is off. This primarily affects deployments that intentionally enable workspace-only filesystem restrictions (and workspace-only apply_patch checks).
Impact
- Confidentiality: out-of-workspace files could be read through in-workspace hardlink aliases.
- Integrity: out-of-workspace files could be modified through in-workspace hardlink aliases.
Affected Packages / Versions
- Package:
openclaw(npm) - Latest published version at triage time:
2026.2.24 - Affected range:
<= 2026.2.24 - Planned patched version:
2026.2.25
Fix Commit(s)
04d91d0319b82fd4de91ed05e9fc5219ff2ab64e(main)
Remediation
OpenClaw now rejects hardlinked final-file aliases during workspace boundary validation for:
- workspace-only path checks (
read/write/edit) - workspace-only
apply_patchread/write paths - sandbox mount-root path-safety checks
Regression tests were added for apply_patch, workspace fs tools, and sandbox fs bridge hardlink alias escapes.
OpenClaw thanks @tdjackey for reporting.
Credited to tdjackey.
Questions
- Is the default OpenClaw configuration affected?
The advisory says tools.fs.workspaceOnly is off by default, and the issue mainly affects deployments that turn workspace-only restrictions on.
- What is a hardlink alias?
A second directory entry for the same file. A link in the workspace can point at a file outside it, and the old check accepted it.
- Which version fixes it?
openclaw 2026.2.25. Versions up to 2026.2.24 are affected.
- Can it write files, or only read?
Both. The advisory lists reading and modifying out-of-workspace files through in-workspace hardlink aliases.
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
