Skip to content
HighVulnerability

GHSA-7437-7hg8-frrw: 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)

Published
Record updated
View JSON
Affected
  • openclaw < 2026.4.8
Fixed in
2026.4.8
  • released April 8, 2026, 1 day before disclosure

Summary

OpenClaw's exec environment denylist omits HGRCPATH, CARGO_BUILD_RUSTC_WRAPPER, RUSTC_WRAPPER and MAKEFLAGS, so hostile build-tool environment variables can influence host exec commands. The advisory states this enables RCE and is scoped to OpenClaw's user-controlled local assistant trust model, not a multi-tenant service. Affected versions are openclaw (npm) before 2026.4.8.

Mitigation

Fixed in openclaw 2026.4.8 (patched npm version); the verified fixed tree is commit d7c3210cd6f5fdfdc1beff4c9541673e814354d5.