Description
OpenClaw versions prior to 2026.2.23 contain a path traversal vulnerability in the experimental apply_patch tool that allows attackers with sandbox access to modify files outside the workspace directory by exploiting inconsistent enforcement of workspace-only checks on mounted paths. Attackers can use apply_patch operations on writable mounts outside the workspace root to access and modify arbitrary files on the system.
Problem types
CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Product status
Any version before 2026.2.23
2026.2.23 (semver)
Credits
tdjackey
References
github.com/...enclaw/security/advisories/GHSA-h9xm-j4qg-fvpg (GitHub Security Advisory (GHSA-h9xm-j4qg-fvpg))
github.com/...ommit/6634030be31e1a1842967df046c2f2e47490e6bf (Patch Commit)
www.vulncheck.com/...ch-tool-via-workspace-only-check-bypass (VulnCheck Advisory: OpenClaw < 2026.2.23 - Sandbox Bypass in apply_patch Tool via Workspace-Only Check Bypass)