CVE-2026-22217 OpenClaw 2026.2.22 < 2026.2.23 - Arbitrary Binary Execution via $SHELL Environment Variable Trusted Prefix Fallback
MediumCVSS 5.8
EPSS 0.21%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
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.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm openclaw | >= 2026.2.22, < 2026.2.23 | 2026.2.23 | Fixed |
| npm openclaw(npm) | >= 2026.2.22, < 2026.2.23 | 2026.2.23 | Fixed |
| openclaw | >= 2026.2.22, < 2026.2.23 | 2026.2.23 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm openclaw | >= 2026.2.22, < 2026.2.23 | 2026.2.23 |
| npm openclaw(npm) | >= 2026.2.22, < 2026.2.23 | 2026.2.23 |
| openclaw | >= 2026.2.22, < 2026.2.23 | 2026.2.23 |
References
- GitHub Security Advisory (GHSA-p4wh-cr8m-gm6c) vendor-advisory
- Patch Commit patch
- VulnCheck Advisory: OpenClaw 2026.2.22 < 2026.2.23 - Arbitrary Binary Execution via $SHELL Environment Variable Trusted Prefix Fallback third-party-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product