All reports
Low

OpenClaw safeBins stdin-only bypass via sort output and recursive grep flags

Affected versions

Affected versions
<= 2026.2.17
Fixed version
2026.2.19

Exploitation

CVE-2026-31996

Probability of exploitation in the next 30 days: 0.16%

FIRST EPSS · 2026-11-19

Description

Summary

tools.exec.safeBins could be bypassed for filesystem access when sort output flags (-o / --output) or recursive grep flags were allowed through safe-bin execution paths.

Affected Packages / Versions

  • Package: openclaw (npm)

  • Affected versions: <= 2026.2.17

  • Patched versions: >= 2026.2.19

  • Latest published version at triage time: 2026.2.17

Impact

In deployments that enabled tools.exec.safeBins, an attacker with access to command execution flows could turn intended stdin-only safe-bin usage into file writes (sort -o) or recursive file reads (grep -R).

Fix Commit(s)

  • 2c05cbb43e48ebad03626d3125746fb1b9a8520f

Found using MCPwner

Thanks @nedlir for reporting.

Links

Credits

  • nedlir