CVE-2026-42427
MEDIUMOpenClaw < 2026.4.8 - Remote Code Execution via Build Tool Environment Variable Injection
Title source: cnaDescription
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.
References (3)
Core 3
Core References
Vendor Advisory vendor-advisory
GitHub Security Advisory (GHSA-7437-7hg8-frrw)
https://github.com/openclaw/openclaw/security/advisories/GHSA-7437-7hg8-frrw
Patch patch
Patch Commit
https://github.com/openclaw/openclaw/commit/d7c3210cd6f5fdfdc1beff4c9541673e814354d5
Third Party Advisory third-party-advisory
VulnCheck Advisory: OpenClaw < 2026.4.8 - Remote Code Execution via Build Tool Environment Variable Injection
https://www.vulncheck.com/advisories/openclaw-remote-code-execution-via-build-tool-environment-variable-injection
Scores
CVSS v3
5.3
EPSS
0.0019
EPSS Percentile
8.5%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-184
Status
published
Products (4)
npm/openclaw
0 - 2026.4.8npm
OpenClaw/OpenClaw
< 2026.4.8
openclaw/openclaw
< 2026.4.8
OpenClaw/OpenClaw
2026.4.8
Published
Apr 28, 2026
Tracked Since
Apr 29, 2026