{"id":"CVE-2026-22217","published":"2026-03-18T01:34:25Z","modified":"2026-06-23T16:13:53Z","title":"OpenClaw 2026.2.22 < 2026.2.23 - Arbitrary Binary Execution via $SHELL Environment Variable Trusted Prefix Fallback","vendor":"OpenClaw","product":"OpenClaw","tier":"tail","description":{"text":"OpenClaw version 2026.2.22 prior to 2026.2.23 contains an arbitrary code execution vulnerability in shell-env that allows attackers to execute attacker-controlled binaries by exploiting trusted-prefix fallback logic for the $SHELL variable. An attacker can influence the $SHELL environment variable on systems with writable trusted-prefix directories such as /opt/homebrew/bin to execute arbitrary binaries in the OpenClaw process context.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00214,"percentile":0.06697,"provenance":"source"},"cwes":[{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"references":[{"url":"https://github.com/openclaw/openclaw/security/advisories/GHSA-p4wh-cr8m-gm6c","tags":["vendor-advisory"]},{"url":"https://github.com/openclaw/openclaw/commit/ff10fe8b91670044a6bb0cd85deb736a0ec8fb55","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/openclaw-arbitrary-binary-execution-via-shell-environment-variable-trusted-prefix-fallback","tags":["third-party-advisory"]}],"priority":{"score":5.6,"factors":[{"name":"EPSS percentile","points":1.34},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"openclaw","affectedVersions":[{"vendor":"OpenClaw","product":"OpenClaw","versions":[">= 2026.2.22, < 2026.2.23"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-18T16:01:34.013895Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"openclaw","vulnerableRanges":[">=2026.2.22, <2026.2.23"],"patched":["2026.2.23"],"from":["GHSA-p4wh-cr8m-gm6c"],"provenance":"source"}],"summary":{"text":"OpenClaw versions 2026.2.22 before 2026.2.23 contain a flaw in the shell-env component, where trusted-prefix fallback logic for the $SHELL environment variable can cause arbitrary binaries to be executed in the OpenClaw process. An attacker with local access and low privileges, who can influence $SHELL on a system with writable trusted-prefix directories such as /opt/homebrew/bin, can run attacker-chosen binaries in that context, requiring no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:20Z"},"euvd":{"id":"EUVD-2026-12730","exploited":false,"provenance":"source"}}