CVE-2026-27523: OpenClaw's sandbox bind validation could bypass allowed-root and blocked-path checks via symlink-parent missing-leaf paths
OpenClaw 2026.2.23 and earlier can be tricked into mounting host paths outside its allowed roots into a sandbox. Bind-source validation missed paths that use a symlinked parent and a leaf that does not exist yet. Upgrade the npm package openclaw to 2026.2.24.
Published Mar 3, 2026 · Updated Mar 18, 2026 · Analysis Nov 22, 2026
What an attacker can do
validateBindMounts resolved the real path of a bind source only when the full path already existed. For a path with a missing leaf, it did not fully resolve symlinks in the parent directories before it checked allowed source roots and blocked runtime paths.
A source path that looks inside an allowed root can therefore resolve outside it once the missing leaf is created. That includes the blocked runtime paths. The sandbox boundary on what the host exposes to a sandboxed agent weakens, and the CVSS 4.0 vector rates integrity impact high (CWE-22, CWE-59).
The attacker needs low privileges: the ability to supply a bind source, with a symlink in a parent directory under their control. The advisory does not give a worked exploit. Teams that let agents or users define sandbox bind mounts should treat this as a sandbox escape primitive.
Who is affected
The npm package openclaw, version 2026.2.23 and earlier, the latest release on 2026-02-24. Setups that configure sandbox bind mounts are affected.
Check:
npm ls -g openclawAlso review any bind sources whose parent directories contain symlinks.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.2.23
- Fixed in
- 2026.2.24
- Check
npm ls openclaw
How to fix it
Upgrade openclaw to 2026.2.24, published to npm on 2026-02-25:
npm install -g [email protected]The fix commit is b5787e4abba0dcc6baf09051099f6773c1679ec1. Validation now canonicalizes through the nearest existing ancestor, then re-checks the canonical path against both the allowed source roots and the blocked runtime paths. Regression tests cover symlink-parent plus missing-leaf patterns. The advisory lists no workaround.
How to tell if you were hit
Inspect configured sandbox bind sources and check each with realpath on its nearest existing ancestor. Flag any that resolve outside your allowed roots, or into runtime paths that should be blocked. Search for symlinks created inside allowed roots that point elsewhere. Beam records agent shell commands and file access, so a symlink created by an agent before a sandbox bind can be traced.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
In openclaw up to and including 2026.2.23 (latest npm release as of February 24, 2026), sandbox bind-source validation could be bypassed when a bind source used a symlinked parent plus a non-existent leaf path.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected:
<= 2026.2.23 - Patched:
>= 2026.2.24(planned next release)
Root Cause
validateBindMounts previously relied on full-path realpath only when the full source path already existed. For missing-leaf paths, parent symlink traversal was not fully canonicalized before allowed-root and blocked-path checks.
Security Impact
A source path that looked inside an allowed root could resolve outside that root (including blocked runtime paths) once the missing leaf was created, weakening sandbox bind-source boundary enforcement.
Fix
The validation path now canonicalizes through the nearest existing ancestor, then always re-checks the canonical path against both:
- allowed source roots
- blocked runtime paths
Verification
pnpm checkpnpm exec vitest run --config vitest.gateway.config.tspnpm test:fast- Added regression tests for symlink-parent + missing-leaf bypass patterns.
Fix Commit(s)
b5787e4abba0dcc6baf09051099f6773c1679ec1
Release Process Note
patched_versions is pre-set to the planned next release (2026.2.24) so after npm publish the advisory can be published without further field edits.
OpenClaw thanks @tdjackey for reporting.
Publication Update (2026-02-25)
[email protected] is published on npm and contains the fix commit(s) listed above. This advisory now marks >= 2026.2.24 as patched.
Credited to tdjackey.
Questions
- Which OpenClaw version fixes CVE-2026-27523?
2026.2.24. Version 2026.2.23 and earlier are affected.
- What kind of path triggers the bypass?
A bind source with a symlinked parent and a leaf that does not exist yet. The old code only used full-path realpath when the whole path existed.
- What does the fix check?
It canonicalizes through the nearest existing ancestor and re-checks the result against allowed source roots and blocked runtime paths.
- Is it exploited in the wild?
The advisory reports no sandbox escapes in the wild, and CISA has not listed it.
References
Read for this analysis:
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
