PatchSiren cyber security CVE debrief
CVE-2026-22217 OpenClaw CVE debrief
OpenClaw versions 2026.2.22 and earlier contain an arbitrary code execution vulnerability in the shell-env component. The flaw stems from trusted-prefix fallback logic for the $SHELL environment variable, which can be exploited when attackers control the $SHELL variable on systems with writable trusted-prefix directories such as /opt/homebrew/bin. This allows execution of attacker-controlled binaries within the OpenClaw process context. The vulnerability was published on March 18, 2026, and last modified on May 26, 2026. A patch is available in version 2026.2.23.
- Vendor
- OpenClaw
- Product
- Unknown
- CVSS
- MEDIUM 5.8
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-03-18
- Original CVE updated
- 2026-05-26
- Advisory published
- 2026-03-18
- Advisory updated
- 2026-05-26
Who should care
Organizations running OpenClaw version 2026.2.22 on Node.js environments, particularly those with multi-user systems or shared development environments where directory permissions may be misconfigured. System administrators managing Homebrew or similar package manager installations should prioritize this update due to the common use of /opt/homebrew/bin as a trusted-prefix directory.
Technical summary
The vulnerability exists in OpenClaw's shell-env component where trusted-prefix fallback logic for resolving the $SHELL environment variable can be abused. When $SHELL contains a path within a writable trusted-prefix directory (e.g., /opt/homebrew/bin), an attacker with sufficient local access can place a malicious binary at that location. OpenClaw's process will then execute this attacker-controlled binary when performing shell operations. The attack requires local access and low privileges but can result in high integrity impact within the application context. The fix in version 2026.2.23 addresses the fallback logic to prevent this execution path.
Defensive priority
medium
Recommended defensive actions
- Upgrade OpenClaw to version 2026.2.23 or later to address the shell-env trusted-prefix fallback vulnerability
- Review and restrict write permissions on trusted-prefix directories such as /opt/homebrew/bin to prevent attacker-controlled binary placement
- Audit environment variable configurations, particularly $SHELL, on systems running OpenClaw to ensure they point to legitimate binaries
- Monitor for unexpected process executions within the OpenClaw process context that may indicate exploitation attempts
- Validate that security controls prevent unprivileged users from modifying critical environment variables used by OpenClaw
Evidence notes
The vulnerability affects OpenClaw running on Node.js, specifically versions from 2026.2.22 up to but not including 2026.2.23. The CVSS 4.0 vector indicates local attack vector with low attack complexity, requiring low privileges but no user interaction. The weakness is classified as CWE-829: Inclusion of Functionality from Untrusted Control Sphere.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-22217 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-22217
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-22217 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-22217
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://github.com/openclaw/openclaw/commit/ff10fe8b91670044a6bb0cd85deb736a0ec8fb55
[email protected] - Patch
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://github.com/openclaw/openclaw/security/advisories/GHSA-p4wh-cr8m-gm6c
[email protected] - Vendor Advisory
-
Mitigation or vendor reference
Unverified legacy reference
URL: https://www.vulncheck.com/advisories/openclaw-arbitrary-binary-execution-via-shell-environment-variable-trusted-prefix-fallback
[email protected] - Third Party Advisory
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.