{"id":"CVE-2026-31996","published":"2026-03-19T01:00:54Z","modified":"2026-06-23T16:14:23Z","title":"OpenClaw < 2026.2.19 - safeBins stdin-only bypass via sort output and recursive grep flags","vendor":"OpenClaw","product":"OpenClaw","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00162,"percentile":0.05499,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/openclaw/openclaw/security/advisories/GHSA-4685-c5cp-vp95","tags":["vendor-advisory"]},{"url":"https://github.com/openclaw/openclaw/commit/2c05cbb43e48ebad03626d3125746fb1b9a8520f","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/openclaw-safebins-stdin-only-bypass-via-sort-output-and-recursive-grep-flags","tags":["third-party-advisory"]}],"priority":{"score":4.2,"factors":[{"name":"EPSS percentile","points":1.1},{"name":"CVSS severity","points":3.08}]},"vendorSlug":"openclaw","affectedVersions":[{"vendor":"OpenClaw","product":"OpenClaw","versions":["< 2026.2.19"]}],"fixedVersions":[{"vendor":"OpenClaw","product":"OpenClaw","versions":["2026.2.19"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-19T17:01:51.595821Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"openclaw","vulnerableRanges":["<2026.2.19"],"patched":["2026.2.19"],"from":["GHSA-4685-c5cp-vp95"],"provenance":"source"}],"summary":{"text":"The OpenClaw tools.exec.safeBins component, in versions before 2026.2.19, contains an input validation flaw in which its stdin-only restrictions can be bypassed through the sort output flag or the recursive grep flag. An attacker who already has the ability to execute commands on the system can use these flags to write arbitrary files or recursively read files from the filesystem, and exploitation requires only local access with low-privilege authentication and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:24Z"},"euvd":{"id":"EUVD-2026-13031","exploited":false,"provenance":"source"}}