Openclaw cli: OpenClaw safeBins stdin-only bypass via sort output and recursive grep flags (CVE-2026-31996)
Description
Openclaw CLI versions up to 2026.2.17 have a vulnerability in the tools.exec.safeBins feature that allows bypassing intended stdin-only restrictions. This occurs when the sort command's output flags (-o/--output) or recursive grep flags are permitted, enabling unintended file writes or recursive file reads. The issue is fixed in versions 2026.2.19 and later.
CVSS v3.1
Score 3.6low
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The openclaw CLI's tools.exec.safeBins mechanism, designed to restrict command execution to stdin-only safe binaries, can be bypassed if the sort command's output flags (-o/--output) or recursive grep flags (-R) are permitted. This bypass allows attackers with command execution privileges to write to files or recursively read files, violating the intended access controls. The vulnerability affects openclaw versions <= 2026.2.17 and was patched in version >= 2026.2.19. The fix is identified by commit 2c05cbb43e48ebad03626d3125746fb1b9a8520f.
Potential Impact
An attacker who already has some level of command execution access in environments using tools.exec.safeBins can escalate their capabilities by bypassing stdin-only restrictions to write files or read directories recursively. This could lead to unauthorized file modifications or data disclosure. The CVSS score is 3.6 (low severity), reflecting limited impact and high attack complexity.
Mitigation Recommendations
Upgrade openclaw to version 2026.2.19 or later, where this vulnerability is patched. Until then, avoid enabling tools.exec.safeBins with configurations that allow sort output flags or recursive grep flags. No other mitigations are specified.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-openclaw-cli-CVE-2026-31996
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Threat ID: 6ac245dd12601ec6a31684c3
Added to database: 10/04/2026, 12:26:05 UTC
Last enriched: 10/04/2026, 13:22:28 UTC
Last updated: 10/04/2026, 16:08:37 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.