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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 2.0
- **CVSS:** 2.0 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: Present; Privileges required: Low; User interaction: None; Confidentiality impact: Low; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **CWE:** CWE-78
- **Aliases:** GHSA-4685-c5cp-vp95
- **Published:** 2026-02-19T22:06:00.000Z
- **Modified:** 2026-06-23T16:14:23.967Z

## Who should check

- Projects that depend on npm package openclaw (\< 2026.2.19)
- Anyone running OpenClaw \< 2026.2.19

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

## Affected and fixed versions

- npm `openclaw`: affected \< 2026.2.19; fixed 2026.2.19 (osv)
- OpenClaw: \< 2026.2.19 (cvelist)

## Mitigation

- Upgrade openclaw to 2026.2.19 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-31996. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31996.md
Affected: openclaw < 2026.2.19
Fixed in: 2026.2.19

Steps:
1. Search this machine and project for openclaw (npm), OpenClaw: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-31996 being exploited?

There is no confirmed exploitation: CVE-2026-31996 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-31996?

Low: CVSS 2.0 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-31996?

openclaw \< 2026.2.19.

### Is there a fix for CVE-2026-31996?

Yes. Fixed in 2026.2.19. Upgrade openclaw to 2026.2.19 or later.

### How do I check if I'm affected by CVE-2026-31996?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/openclaw/openclaw/security/advisories/GHSA-4685-c5cp-vp95>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-31996>
- patch: <https://github.com/openclaw/openclaw/commit/2c05cbb43e48ebad03626d3125746fb1b9a8520f>
- other: <https://www.vulncheck.com/advisories/openclaw-safebins-stdin-only-bypass-via-sort-output-and-recursive-grep-flags>
- other: <https://github.com/openclaw/openclaw>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-31996>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-4685-c5cp-vp95> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-31996> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-31996>
