CVE-2026-22217
MEDIUMOpenClaw 2026.2.22 < 2026.2.23 - Arbitrary Binary Execution via $SHELL Environment Variable Trusted Prefix Fallback
Title source: cnaDescription
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.
References (3)
Core 3
Core References
Third Party Advisory third-party-advisory
GitHub Security Advisory (GHSA-p4wh-cr8m-gm6c)
https://github.com/openclaw/openclaw/security/advisories/GHSA-p4wh-cr8m-gm6c
Patch patch
Patch Commit
https://github.com/openclaw/openclaw/commit/ff10fe8b91670044a6bb0cd85deb736a0ec8fb55
Third Party Advisory third-party-advisory
VulnCheck Advisory: OpenClaw 2026.2.22 < 2026.2.23 - Arbitrary Binary Execution via $SHELL Environment Variable Trusted Prefix Fallback
https://www.vulncheck.com/advisories/openclaw-arbitrary-binary-execution-via-shell-environment-variable-trusted-prefix-fallback
Scores
CVSS v3
6.1
EPSS
0.0013
EPSS Percentile
2.5%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-829
Status
published
Products (3)
npm/openclaw
2026.2.22 - 2026.2.23npm
OpenClaw/OpenClaw
2026.2.22 - 2026.2.23
openclaw/openclaw
2026.2.22 - 2026.2.23
Published
Mar 18, 2026
Tracked Since
Mar 18, 2026