# CVE-2026-22217: OpenClaw 2026.2.22 < 2026.2.23 - Arbitrary Binary Execution via $SHELL Environment Variable Trusted Prefix Fallback

- Severity: Medium 5.8 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-03-03T21:36:16.000Z
- Modified: 2026-06-23T16:13:53.929Z
- Also known as: GHSA-p4wh-cr8m-gm6c
- Weaknesses: CWE-184, CWE-829
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- OpenClaw OpenClaw: from 2026.2.22 before 2026.2.23
- openclaw (npm): from 2026.2.22 before 2026.2.23

## Every score

- VulnCheck: CVSS:4.0 5.8 Medium `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/openclaw/openclaw/security/advisories/GHSA-p4wh-cr8m-gm6c> (vendor-advisory, web)
- <https://github.com/openclaw/openclaw/commit/ff10fe8b91670044a6bb0cd85deb736a0ec8fb55> (patch, web)
- <https://www.vulncheck.com/advisories/openclaw-arbitrary-binary-execution-via-shell-environment-variable-trusted-prefix-fallback> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22217> (advisory)
- <https://github.com/openclaw/openclaw> (package)

## Sources

- CVE List: [CVE-2026-22217](https://www.cve.org/CVERecord?id=CVE-2026-22217), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-p4wh-cr8m-gm6c](https://github.com/advisories/GHSA-p4wh-cr8m-gm6c), CC-BY-4.0, modified 2026-06-08
- NVD: [CVE-2026-22217](https://nvd.nist.gov/vuln/detail/CVE-2026-22217), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-22217 · Whole record: https://cve.day/CVE-2026-22217.json · Rebuilt by cve.day 2026-11-25T22:59:16.074Z
