NetSight
high8.6

CVE-2026-42427

OpenClaw: 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)

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
npmopenclaw< 2026.4.82026.4.8

Affected products

VendorProductAffected versions
OpenclawOpenclaw
before 2026.4.8

Weakness classification

References