CVE-2026-22217: OpenClaw · shell-env trusted-prefix fallback allowed attacker-controlled binary execution via $SHELL
Affects openclaw-cliSource GCVE Database
Not known to be exploited · CVSS 6.1 Medium : upgrade to 2026.7.1 when convenient.
Data as of 18 Nov 2026, 20:25 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 3% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2026.7.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:LExploitation evidence
Disclosed: evidence found.
CVE published 13 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 18 Nov 2026.
What to do
Upgrade openclaw-cli to 2026.7.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewopenclaw-clipkg:brew/openclaw-cliOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and has been released in OpenClaw CLI version 2026.2.23. Users should upgrade to version 2026.2.23 or later to remediate this vulnerability. The fix removes the fallback to trusted-prefix directories and restricts shell selection to shells explicitly listed in /etc/shells or defaults to /bin/sh, preventing execution of attacker-controlled binaries via $SHELL manipulation.
Description
OpenClaw CLI versions from 2026.2.22 up to 2026.2.22-2 contain a vulnerability in shell environment fallback logic that allows execution of attacker-controlled binaries if the runtime $SHELL environment variable can be influenced and a trusted prefix directory is writable. The vulnerability arises because the software accepts shells located in certain hardcoded trusted directories, which may be writable in some environments like Homebrew. The issue is fixed in version 2026.2.23 by removing the trusted-prefix fallback and only trusting shells explicitly listed in /etc/shells or falling back to /bin/sh.
References
- github.com/openclaw/openclaw/security/advisories/GHSA-p4wh-cr8m-gm6c (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-22217 (opens in a new tab)
- github.com/openclaw/openclaw/commit/ff10fe8b91670044a6bb0cd85deb736a0ec8fb55 (opens in a new tab)
- github.com/openclaw/openclaw (opens in a new tab)
- vulncheck.com/advisories/openclaw-arbitrary-binary-execution-via-shell-environment-variable-trusted-prefix-fallback (opens in a new tab)