What’s Vulnerable › Vulnerabilities
CVE-2026-31996: OpenClaw < 2026.2.19 - safeBins stdin-only bypass via sort output and recursive grep flags
- Severity: medium (CVSS 4.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-03-19 · updated 2026-06-17
- Weakness: CWE-78
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.
Affected products
- OpenClaw: before 2026.2.19 — fixed in 2026.2.19
How to fix
Upgrade to a fixed version: OpenClaw 2026.2.19. Check the vendor advisory for mitigations.
References
- https://github.com/openclaw/openclaw/commit/2c05cbb43e48ebad03626d3125746fb1b9a8520f
- https://github.com/openclaw/openclaw/security/advisories/GHSA-4685-c5cp-vp95
- https://www.vulncheck.com/advisories/openclaw-safebins-stdin-only-bypass-via-sort-output-and-recursive-grep-flags
Get alerted when CVE-2026-31996 or the next vulnerability affects your stack