Home

Description

OpenClaw version 2026.2.22 prior to 2026.2.23 contain 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.

PUBLISHED Reserved 2026-01-06 | Published 2026-03-18 | Updated 2026-03-25 | Assigner VulnCheck




MEDIUM: 5.8CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

MEDIUM: 6.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L

Problem types

CWE-829: Inclusion of Functionality from Untrusted Control Sphere

Product status

Default status
unaffected

2026.2.22 (semver) before 2026.2.23
affected

Credits

tdjackey reporter

References

github.com/...enclaw/security/advisories/GHSA-p4wh-cr8m-gm6c (GitHub Security Advisory (GHSA-p4wh-cr8m-gm6c)) third-party-advisory

github.com/...ommit/ff10fe8b91670044a6bb0cd85deb736a0ec8fb55 (Patch Commit) patch

www.vulncheck.com/...onment-variable-trusted-prefix-fallback (VulnCheck Advisory: OpenClaw 2026.2.22 < 2026.2.23 - Arbitrary Binary Execution via $SHELL Environment Variable Trusted Prefix Fallback) third-party-advisory

cve.org (CVE-2026-22217)

nvd.nist.gov (CVE-2026-22217)

Download JSON