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 (10.6th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 11th percentile — 10.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.001 · newest: 0.002 · change: +0.001
Affected products
- Openclaw — versions 0, 2026.2.19
Weakness classification (CWE)
References
- github.com/openclaw/openclaw/security/advisories/GHSA-4685-c5cp-vp95 (vendor-advisory, Vendor Advisory, third-party-advisory)
- github.com/openclaw/openclaw/commit/2c05cbb43e48ebad03626d3125746fb1b9a8520f (Patch, patch)
- www.vulncheck.com/advisories/openclaw-safebins-stdin-only-bypass-via-sort-outpu… (Third Party Advisory, third-party-advisory)
Frequently asked questions
- What is CVE-2026-31996?
- CVE-2026-31996 is a medium-severity vulnerability in Openclaw, classified under OS Command Injection. CVSS score: 4.4/10. Published 2026-03-19.
- How severe is CVE-2026-31996?
- Medium severity. CVSS v3 base score is 4.4 out of 10.