CVE-2026-31996
OpenClaw versions prior to 2026.2.19 tools.exec.safeBins contains …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/openclaw/openclaw/commit/2c05cbb43e48ebad03626d3125746fb1b9a8520f
- github.com/openclaw/openclaw/security/advisories/GHSA-4685-c5cp-vp95
- www.vulncheck.com/advisories/openclaw-safebins-stdin-only-bypass-via-sort-output-and-recur
- nvd.nist.gov/vuln/detail/CVE-2026-31996
- github.com/advisories/GHSA-4685-c5cp-vp95
- nvd.nist.gov/vuln/detail/CVE-2026-31996
- cve.org/CVERecord?id=CVE-2026-31996
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.