Description
OpenClaw versions prior to 2026.2.14 contain a path traversal vulnerability in apply_patch that allows attackers to write or delete files outside the configured workspace directory. When apply_patch is enabled without filesystem sandbox containment, attackers can exploit crafted paths including directory traversal sequences or absolute paths to escape workspace boundaries and modify arbitrary files.
Problem types
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Product status
Any version
2026.2.14
Credits
Peyton Kennedy (@p80n-sec)
References
github.com/...enclaw/security/advisories/GHSA-r5fq-947m-xm57 (GitHub Security Advisory (GHSA-r5fq-947m-xm57))
github.com/...ommit/5544646a09c0121fca7d7093812dc2de8437c7f1 (Patch Commit)
www.vulncheck.com/...versal-in-apply-patch-via-crafted-paths (VulnCheck Advisory: OpenClaw < 2026.2.14 - Path Traversal in apply_patch via Crafted Paths)