Home

Description

OpenClaw versions prior to 2026.2.19 tools.exec.safeBins contains an input validation bypass vulnerability that allows attackers to execute unintended filesystem operations through sort output flags or recursive grep flags. Attackers with command execution access can leverage sort -o flag for arbitrary file writes or grep -R flag for recursive file reads, circumventing intended stdin-only restrictions.

PUBLISHED Reserved 2026-03-10 | Published 2026-03-19 | Updated 2026-04-29 | Assigner VulnCheck




LOW: 2.0CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

MEDIUM: 4.4CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Problem types

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (CWE-78)

Product status

Default status
unaffected

Any version before 2026.2.19
affected

2026.2.19 (semver)
unaffected

Credits

nedlir reporter

References

github.com/...enclaw/security/advisories/GHSA-4685-c5cp-vp95 (GitHub Security Advisory (GHSA-4685-c5cp-vp95)) third-party-advisory

github.com/...ommit/2c05cbb43e48ebad03626d3125746fb1b9a8520f (Patch Commit) patch

www.vulncheck.com/...ia-sort-output-and-recursive-grep-flags (VulnCheck Advisory: OpenClaw < 2026.2.19 - safeBins stdin-only bypass via sort output and recursive grep flags) third-party-advisory

cve.org (CVE-2026-31996)

nvd.nist.gov (CVE-2026-31996)

Download JSON