Description
OpenClaw versions 2026.1.21 prior to 2026.2.19 contain a path hijacking vulnerability in tools.exec.safeBins that allows attackers to bypass allowlist checks by controlling process PATH resolution. Attackers who can influence the gateway process PATH or launch environment can execute trojan binaries with allowlisted names, such as jq, circumventing executable validation controls.
Problem types
CWE-426: Untrusted Search Path
Product status
2026.1.21 (semver) before 2026.2.19
2026.2.19 (semver)
Credits
Adnan Jakati (@jackhax)
References
github.com/...enclaw/security/advisories/GHSA-g75x-8qqm-2vxp (GitHub Security Advisory (GHSA-g75x-8qqm-2vxp))
github.com/...ommit/28bac46c92069dc728524fbf383024c1b64e5c23 (Patch Commit)
www.vulncheck.com/...ools-exec-safebins-allowlist-validation (VulnCheck Advisory: OpenClaw 2026.1.21 < 2026.2.19 - PATH Hijacking Bypass in tools.exec.safeBins Allowlist Validation)