GHSA-ggm6-h3mx-cmmp
Duplicate Advisory: safeBins stdin-only bypass via sort output and recursive grep flags
Impact
## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-4685-c5cp-vp95. This link is maintained to preserve external references. ## Original 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.
An attacker can exploit this with local access to the system, with a regular user account, without any action by a user. Specific conditions have to be met, which makes an attack harder. If it succeeds: low risk of data being read, low risk of data or systems being changed.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | openclaw | <= 2026.2.17 | none recorded |
Weakness classification
References
- GitHub advisory
- https://github.com/advisories/GHSA-ggm6-h3mx-cmmp
- https://github.com/openclaw/openclaw/security/advisories/GHSA-4685-c5cp-vp95
- https://nvd.nist.gov/vuln/detail/CVE-2026-31996
- https://github.com/openclaw/openclaw/commit/2c05cbb43e48ebad03626d3125746fb1b9a8520f
- https://www.vulncheck.com/advisories/openclaw-safebins-stdin-only-bypass-via-sort-output-and-recursive-grep-flags