Skip to main content
VulnerabilityPublished Updated

CVE-2026-22217: OpenClaw · shell-env trusted-prefix fallback allowed attacker-controlled binary execution via $SHELL

Affects openclaw-cliSource GCVE Database

0
Compare

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

CVSS 3.1 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.
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:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Homebrewopenclaw-clipkg:brew/openclaw-cliOther threatsAffected
  • <2026.7.1
Fixed in
  • 2026.7.1

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

Community reviews

Loading reviews…