CVE-2026-22217
MEDIUM 5.8CVSS 4.0OpenClaw: shell-env trusted-prefix fallback allowed attacker-controlled binary execution via $SHELL
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.
- Published
- 18 Mar 2026
- Last modified
- 17 Jun 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Modified
- Weakness
- CWE-184CWE-829
- Also known as
- GHSA-p4wh-cr8m-gm6c
- Sources
- NVDJSONOSV GHSA-p4wh-cr8m-gm6cJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | MEDIUM 5.8 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | openclaw | openclawcpe:2.3:a:openclaw:openclaw:*:*:*:*:*:node.js:*:* |
>= 2026.2.22, < 2026.2.23 | 2026.2.23 |
| OSV | npm | openclaw | >= 2026.2.22, < 2026.2.23 | 2026.2.23 |
References
- https://github.com/openclaw/openclaw/commit/ff10fe8b91670044a6bb0cd85deb736a0ec8fb55 · Patch, WEB
- https://github.com/openclaw/openclaw/security/advisories/GHSA-p4wh-cr8m-gm6c · Vendor Advisory, 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
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 18 Mar 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 3 Mar 2026)