Description
OpenClaw versions prior to 2026.2.25 contain a symlink traversal vulnerability in the agents.files.get and agents.files.set methods that allows reading and writing files outside the agent workspace. Attackers can exploit symlinked allowlisted files to access arbitrary host files within gateway process permissions, potentially enabling code execution through file overwrite attacks.
Problem types
CWE-59: Improper Link Resolution Before File Access ('Link Following')
Product status
Any version before 2026.2.25
2026.2.25 (semver)
Credits
tdjackey
References
github.com/...enclaw/security/advisories/GHSA-fgvx-58p6-gjwc (GitHub Security Advisory (GHSA-fgvx-58p6-gjwc))
github.com/...ommit/125f4071bcbc0de32e769940d07967db47f09d3d (Patch Commit)
www.vulncheck.com/...mlink-traversal-in-agents-files-methods (VulnCheck Advisory: OpenClaw < 2026.2.25 - Symlink Traversal in agents.files Methods)