CVE-2026-42427

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

State
Published
Severity
5.8 Medium
Published
Apr 28, 2026
Updated
Apr 29, 2026
Reserved
Apr 27, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
4.05.8 MediumCVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:NVulnCheck
3.15.3 MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:NVulnCheck

Weaknesses

  • CWE-184 Incomplete List of Disallowed Inputs

Affected Products

ProductVersions
OpenClawOpenClaw
  • before 2026.4.8Affected
  • 2026.4.8Not affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.