CVE-2026-41364: OpenClaw: SSH sandbox tar upload follows symlinks, enabling arbitrary file write on remote host
OpenClaw 2026.3.28 and earlier upload a local workspace to an SSH sandbox without rejecting symlinks that point outside it. The remote side receives the link and later writes can follow it, giving arbitrary file write on the remote host. Upgrade to openclaw 2026.3.31.
Published Apr 2, 2026 · Updated May 6, 2026 · Analysis Oct 30, 2026
What an attacker can do
When OpenClaw syncs a local workspace to a remote SSH sandbox, uploadDirectoryToSshTarget (src/agents/sandbox/ssh.ts) sent the tree as it was. Nothing checked whether a symlink inside the workspace resolved to a place outside it, such as /etc. The link arrived on the remote host intact. A later write through that path in the sandbox, by the agent or a patch, then landed on the remote host's own files.
The attacker needs a workspace that holds the symlink and an OpenClaw setup that uploads it. That could be a cloned repository, or content the agent was steered into creating. The CVSS vector shows network reach, low privileges and no user action. The result is arbitrary file write on the remote host with the SSH user's rights, scored as high integrity and availability impact. That can overwrite configuration, authorized keys or scripts, and lead to code execution on the remote machine. The vector shows no confidentiality impact. The maintainers rate it high.
Who is affected
The npm package openclaw at 2026.3.28 and earlier, when the SSH sandbox backend is used to sync a local workspace to a remote host. Version 2026.3.31 is the first stable release with the fix. Setups that use a local sandbox only are not exposed through this path.
Check your install:
npm ls -g openclaw
openclaw --versionCheck workspaces you sync for symlinks that point outside the tree:
find path/to/workspace -type l -lsopenclaw
- Ecosystem
- npm
- Affected
- <= 2026.3.28
- Fixed in
- 2026.3.31
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.31 or later.
npm install -g [email protected]Commit 3d5af149 makes uploadDirectoryToSshTarget call assertSafeUploadSymlinks first. It walks the local workspace and resolves every symlink against the upload root. A link that escapes stops the upload with the error SSH sandbox upload refuses symlink escaping the workspace, followed by the path. Links that stay inside the workspace still upload. The advisory names no workaround.
How to tell if you were hit
Search the remote sandbox host for symlinks that point outside the sandbox directory, and for files changed outside it at the time of agent runs. Check the SSH user's authorized_keys, shell profiles and cron entries for changes. On a patched client, the refusal message above in the OpenClaw logs shows an upload that was blocked, which is also a sign of an attempt.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
SSH sandbox tar upload follows symlinks, enabling arbitrary file write on remote host
Current Maintainer Triage
- Status: open
- Normalized severity: high
- Assessment: Real in shipped v2026.3.28: SSH sandbox tar upload lacked pre-upload symlink escape rejection until 3d5af14984 on 2026-03-31; maintainers already accepted it and the fix is unreleased.
Affected Packages / Versions
- Package:
openclaw(npm) - Latest published npm version:
2026.3.31 - Vulnerable version range:
<=2026.3.28 - Patched versions:
>= 2026.3.31 - First stable tag containing the fix:
v2026.3.31
Fix Commit(s)
3d5af14984ac1976c747a8e11581d697bd0829dc— 2026-03-31T19:56:45+09:00
OpenClaw thanks @AntAISecurityLab for reporting.
Credited to AntAISecurityLab.
Questions
- Is OpenClaw 2026.3.28 affected by CVE-2026-41364?
Yes. Versions up to and including 2026.3.28 are vulnerable. The patched version is 2026.3.31.
- Are all symlinks blocked after the fix?
No. Only symlinks that resolve outside the uploaded workspace are refused. The tests show a link to a file inside the workspace uploads fine.
- Is it exploited in the wild?
No source I read says so, and the entry has no CISA KEV flag. The EPSS score is about 0.5%.
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
