CVE-2026-42427 PUBLISHED

OpenClaw < 2026.4.8 - Remote Code Execution via Build Tool Environment Variable Injection

Assigner: VulnCheck
Reserved: 27.04.2026 Published: 28.04.2026 Updated: 28.04.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N
CVSS Score: 5.8

Product Status

Vendor OpenClaw
Product OpenClaw
Versions Default: unaffected
  • affected from 0 to 2026.4.8 (excl.)
  • Version 2026.4.8 is unaffected

Credits

  • boyhack (@boy-hack) reporter

References

Problem Types

  • CWE-184: Incomplete List of Disallowed Inputs CWE