CVE-2026-42427
MEDIUM 5.8CVSS 4.0OpenClaw: HGRCPATH, CARGO_BUILD_RUSTC_WRAPPER, RUSTC_WRAPPER, and MAKEFLAGS missing from exec env denylist — RCE via build tool env injection (GHSA-cm8v-2vh9-cxf3 class)
OpenClaw before 2026.4.8 contains a remote code execution vulnerability caused by missing environment variable denylist entries for HGRCPATH, CARGO_BUILD_RUSTC_WRAPPER, RUSTC_WRAPPER, and MAKEFLAGS. Attackers can inject malicious build tool environment variables to influence host exec commands and achieve arbitrary code execution.
- Published
- 28 Apr 2026
- Last modified
- 11 Nov 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Analyzed
- Weakness
- CWE-184CWE-78
- Also known as
- GHSA-7437-7hg8-frrw
- Sources
- NVDJSONOSV GHSA-7437-7hg8-frrwJSON
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:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/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:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | openclaw | openclawcpe:2.3:a:openclaw:openclaw:*:*:*:*:*:node.js:*:* |
< 2026.4.8 | 2026.4.8 |
| OSV | npm | openclaw | < 2026.4.8 | 2026.4.8 |
References
- https://github.com/openclaw/openclaw/commit/d7c3210cd6f5fdfdc1beff4c9541673e814354d5 · Patch, WEB
- https://github.com/openclaw/openclaw/security/advisories/GHSA-7437-7hg8-frrw · Vendor Advisory, WEB
- https://www.vulncheck.com/advisories/openclaw-remote-code-execution-via-build-tool-environment-variable-injection · Third Party Advisory
- https://github.com/openclaw/openclaw · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 28 Apr 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 9 Apr 2026)