Description
OpenClaw through 2026.2.22 contains a symlink traversal vulnerability in agents.create and agents.update handlers that use fs.appendFile on IDENTITY.md without symlink containment checks. Attackers with workspace access can plant symlinks to append attacker-controlled content to arbitrary files, enabling remote code execution via crontab injection or unauthorized access via SSH key manipulation.
Problem types
UNIX Symbolic Link (Symlink) Following
Product status
Any version
2026.2.23 (semver)
Credits
Edward-x (@YLChen-007)
References
github.com/...enclaw/security/advisories/GHSA-7xr2-q9vf-x4r5
github.com/...enclaw/security/advisories/GHSA-7xr2-q9vf-x4r5 (GitHub Security Advisory (GHSA-7xr2-q9vf-x4r5))
www.vulncheck.com/...y-md-appendfile-in-agents-create-update (VulnCheck Advisory: OpenClaw < 2026.2.22 - Symlink Traversal via IDENTITY.md appendFile in agents.create/update)