Description
OpenClaw versions prior to 2026.2.24 contain a policy bypass vulnerability in the safeBins allowlist evaluation that trusts static default directories including writable package-manager paths like /opt/homebrew/bin and /usr/local/bin. An attacker with write access to these trusted directories can place a malicious binary with the same name as an allowed executable to achieve arbitrary command execution within the OpenClaw runtime context.
Problem types
CWE-426: Untrusted Search Path
Product status
Any version before 2026.2.24
2026.2.24 (semver)
Credits
tdjackey
References
github.com/...enclaw/security/advisories/GHSA-5gj7-jf77-q2q2 (GitHub Security Advisory (GHSA-5gj7-jf77-q2q2))
github.com/...ommit/b67e600bff696ff2ed9b470826590c0ce6b3bb0a (Patch Commit)
www.vulncheck.com/...default-trusted-directories-in-safebins (VulnCheck Advisory: OpenClaw < 2026.2.24 - Binary Hijacking via Static Default Trusted Directories in safeBins)