Description
OpenClaw before 2026.4.2 contains an arbitrary directory deletion vulnerability in mirror mode that allows attackers to delete remote directories by influencing remoteWorkspaceDir and remoteAgentWorkspaceDir configuration values. Attackers can manipulate these OpenShell config paths to cause mirror sync operations to delete unintended remote directory contents and replace them with uploaded workspace data.
Problem types
CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Product status
Any version before 2026.4.2
2026.4.2 (semver)
Credits
jufeng123768
References
github.com/...enclaw/security/advisories/GHSA-m34q-h93w-vg5x (GitHub Security Advisory (GHSA-m34q-h93w-vg5x))
github.com/...ommit/b21c9840c2e38f4bb338d031511b479d5f07ca25 (Patch Commit)
www.vulncheck.com/...letion-via-mis-scoped-mirror-mode-paths (VulnCheck Advisory: OpenClaw < 2026.4.2 - Arbitrary Remote Directory Deletion via Mis-scoped Mirror Mode Paths)