CVE-2026-31996 OpenClaw < 2026.2.19 - safeBins stdin-only bypass via sort output and recursive grep flags
LowCVSS 2.0
EPSS 0.25%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm openclaw | < 2026.2.19 | 2026.2.19 | Fixed |
| npm openclaw(npm) | < 2026.2.19; <= 2026.2.17 | 2026.2.19 | Fixed |
| openclaw | < 2026.2.19 | 2026.2.19 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm openclaw | < 2026.2.19 | 2026.2.19 |
| npm openclaw(npm) | <= 2026.2.17 | No fix listed |
| openclaw | < 2026.2.19 | 2026.2.19 |
| npm openclaw(npm) | < 2026.2.19 | 2026.2.19 |
References
- GitHub Security Advisory (GHSA-4685-c5cp-vp95) vendor-advisory
- Patch Commit patch
- VulnCheck Advisory: OpenClaw < 2026.2.19 - safeBins stdin-only bypass via sort output and recursive grep flags third-party-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product