Description
OpenClaw before 2026.3.13 contains a remote command injection vulnerability in the iMessage attachment staging flow that allows attackers to execute arbitrary commands on configured remote hosts. The vulnerability exists because unsanitized remote attachment paths containing shell metacharacters are passed directly to the SCP remote operand without validation, enabling command execution when remote attachment staging is enabled.
Problem types
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Product status
Any version before 2026.3.13
2026.3.13 (semver)
Credits
lintsinghua
References
github.com/...enclaw/security/advisories/GHSA-g2f6-pwvx-r275 (GitHub Security Advisory (GHSA-g2f6-pwvx-r275))
github.com/...ommit/a54bf71b4c0cbe554a84340b773df37ee8e959de (Patch Commit)
www.vulncheck.com/...itized-imessage-attachment-paths-in-scp (VulnCheck Advisory: OpenClaw < 2026.3.13 - Remote Command Injection via Unsanitized iMessage Attachment Paths in SCP)