Description
OpenClaw versions prior to 2026.2.22 contain an allowlist bypass vulnerability in the safe-bin configuration when sort is manually added to tools.exec.safeBins. Attackers can invoke sort with the --compress-program flag to execute arbitrary external programs without operator approval in allowlist mode with ask=on-miss enabled.
Problem types
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (CWE-78)
Product status
Any version before 2026.2.22
2026.2.22 (semver)
Credits
tdjackey
References
github.com/...enclaw/security/advisories/GHSA-4gc7-qcvf-38wg (GitHub Security Advisory (GHSA-4gc7-qcvf-38wg))
github.com/...ommit/57fbbaebca4d34d17549accf6092ae26eb7b605c (Patch Commit)
www.vulncheck.com/...ass-via-sort-compress-program-parameter (VulnCheck Advisory: OpenClaw < 2026.2.22 - Allowlist Bypass via sort --compress-program Parameter)