Home

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.

PUBLISHED Reserved 2026-04-27 | Published 2026-04-28 | Updated 2026-04-29 | Assigner VulnCheck




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

MEDIUM: 5.3CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N

Problem types

CWE-184: Incomplete List of Disallowed Inputs

Product status

Default status
unaffected

Any version before 2026.4.8
affected

2026.4.8 (semver)
unaffected

Credits

boyhack (@boy-hack) reporter

References

github.com/...enclaw/security/advisories/GHSA-7437-7hg8-frrw (GitHub Security Advisory (GHSA-7437-7hg8-frrw)) vendor-advisory

github.com/...ommit/d7c3210cd6f5fdfdc1beff4c9541673e814354d5 (Patch Commit) patch

www.vulncheck.com/...ild-tool-environment-variable-injection (VulnCheck Advisory: OpenClaw < 2026.4.8 - Remote Code Execution via Build Tool Environment Variable Injection) third-party-advisory

cve.org (CVE-2026-42427)

nvd.nist.gov (CVE-2026-42427)

Download JSON