CVE-2026-31996
LOW 2.0CVSS 4.0OpenClaw safeBins stdin-only bypass via sort output and recursive grep flags
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.
- Published
- 19 Mar 2026
- Last modified
- 17 Jun 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Modified
- Weakness
- CWE-184CWE-78
- Also known as
- GHSA-4685-c5cp-vp95
- Sources
- NVDJSONOSV GHSA-4685-c5cp-vp95JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | LOW 2.0 | CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | nvd@nist.gov (Secondary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | MEDIUM 4.4 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.6 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | openclaw | openclawcpe:2.3:a:openclaw:openclaw:*:*:*:*:*:node.js:*:* |
< 2026.2.19 | 2026.2.19 |
| OSV | npm | openclaw | < 2026.2.19 | 2026.2.19 |
References
- https://github.com/openclaw/openclaw/commit/2c05cbb43e48ebad03626d3125746fb1b9a8520f · Patch, WEB
- https://github.com/openclaw/openclaw/security/advisories/GHSA-4685-c5cp-vp95 · Vendor Advisory, WEB
- https://www.vulncheck.com/advisories/openclaw-safebins-stdin-only-bypass-via-sort-output-and-recursive-grep-flags · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-31996 · ADVISORY
- https://github.com/openclaw/openclaw · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 19 Mar 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 19 Feb 2026)