Description
OpenClaw versions prior to 2026.2.22 on macOS contain a path validation bypass vulnerability in the exec-approval allowlist mode that allows local attackers to execute unauthorized binaries by exploiting basename-only allowlist entries. Attackers can execute same-name local binaries ./echo without approval when security=allowlist and ask=on-miss are configured, bypassing intended path-based policy restrictions.
Problem types
CWE-426: Untrusted Search Path
Product status
Any version before 2026.2.22
2026.2.22 (semver)
Credits
tdjackey
References
github.com/...enclaw/security/advisories/GHSA-7f4q-9rqh-x36p (GitHub Security Advisory (GHSA-7f4q-9rqh-x36p))
github.com/...ommit/dd41fadcaf58fd9deb963d6e163c56161e7b35dd (Patch Commit)
www.vulncheck.com/...sename-only-allowlist-matching-on-macos (VulnCheck Advisory: OpenClaw < 2026.2.22 - Path Traversal via Basename-Only Allowlist Matching on macOS)