Vulnerability in Openclaw
CVE-2026-42427
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 · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N.
EPSS exploit prediction
EPSS 0.002, 8.5th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Openclaw — versions 0, 2026.4.8
Weakness classification (CWE)
References
- github.com/openclaw/openclaw/security/advisories/GHSA-7437-7hg8-frrw (vendor-advisory, Vendor Advisory)
- github.com/openclaw/openclaw/commit/d7c3210cd6f5fdfdc1beff4c9541673e814354d5 (Patch, patch)
- www.vulncheck.com/advisories/openclaw-remote-code-execution-via-build-tool-envi… (Third Party Advisory, third-party-advisory)