# CVE-2026-31996: OpenClaw < 2026.2.19 - safeBins stdin-only bypass via sort output and recursive grep flags

- Severity: Low 2.0 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 10% of CVEs (2026-11-30)
- Published: 2026-02-19T22:06:00.000Z
- Modified: 2026-06-23T16:14:23.967Z
- Also known as: GHSA-4685-c5cp-vp95
- Weaknesses: CWE-78, CWE-184
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- OpenClaw OpenClaw: before 2026.2.19 (not affected: 2026.2.19)
- openclaw (npm): before 2026.2.19

## Every score

- VulnCheck: CVSS:4.0 2.0 Low `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`
- VulnCheck: CVSS:3.1 4.4 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 3.6 Low `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/openclaw/openclaw/security/advisories/GHSA-4685-c5cp-vp95> (vendor-advisory, web)
- <https://github.com/openclaw/openclaw/commit/2c05cbb43e48ebad03626d3125746fb1b9a8520f> (patch, 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)

## Sources

- CVE List: [CVE-2026-31996](https://www.cve.org/CVERecord?id=CVE-2026-31996), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-4685-c5cp-vp95](https://github.com/advisories/GHSA-4685-c5cp-vp95), CC-BY-4.0, modified 2026-03-19
- NVD: [CVE-2026-31996](https://nvd.nist.gov/vuln/detail/CVE-2026-31996), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-31996 · Whole record: https://cve.day/CVE-2026-31996.json · Rebuilt by cve.day 2026-11-25T22:59:16.161Z
