{"id":"CVE-2026-22217","summary":"OpenClaw 2026.2.22 \u003c 2026.2.23 - Arbitrary Binary Execution via $SHELL Environment Variable Trusted Prefix Fallback","details":"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.","aliases":["GHSA-p4wh-cr8m-gm6c"],"modified":"2026-08-12T03:51:43.073242572Z","published":"2026-03-18T01:34:25.500Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-829"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22217.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22217.json"},{"type":"ADVISORY","url":"https://github.com/openclaw/openclaw/security/advisories/GHSA-p4wh-cr8m-gm6c"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22217"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/openclaw-arbitrary-binary-execution-via-shell-environment-variable-trusted-prefix-fallback"},{"type":"FIX","url":"https://github.com/openclaw/openclaw/commit/ff10fe8b91670044a6bb0cd85deb736a0ec8fb55"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openclaw/openclaw","events":[{"introduced":"a54dc7fe80fc02e2a02e6901668a468fcb0cf8b4"},{"fixed":"b817600533129771ace2801d7c05901c7f850fb8"},{"fixed":"ff10fe8b91670044a6bb0cd85deb736a0ec8fb55"}],"database_specific":{"extracted_events":[{"introduced":"2026.2.22"},{"fixed":"2026.2.23"}],"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:node.js:*:*"}}],"versions":["v2026.2.23-beta.1","v2026.2.22"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-22217.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N"}]}