Skip to content
MediumVulnerability

CVE-2026-42427: OpenClaw remote code execution via missing environment variable denylist

Identifier
CVE-2026-42427
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.

Summary

OpenClaw before 2026.4.8 lacks denylist entries for the environment variables HGRCPATH, CARGO_BUILD_RUSTC_WRAPPER, RUSTC_WRAPPER, and MAKEFLAGS, tracked as CVE-2026-42427. An attacker can inject these build tool variables to influence host exec commands and achieve arbitrary code execution.

Mitigation

Fixed in 2026.4.8, the first version without this flaw.