RCE in Openclaw
CVE-2026-31996
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.4 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.002, 5.4th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Openclaw — versions 0, 2026.2.19
Weakness classification (CWE)
References
- GitHub Security Advisory (GHSA-4685-c5cp-vp95) (vendor-advisory, third-party-advisory, Vendor Advisory)
- Patch Commit (Patch, patch)
- VulnCheck Advisory: OpenClaw < 2026.2.19 - safeBins stdin-only bypass via sort output and recursive grep flags (Third Party Advisory, third-party-advisory)