CVE-2026-42427

Medium

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.

SeverityMedium
CVSS5.3
Exploit probability—
ProductOpenclaw
PublishedApr 28, 2026
First seenApr 28, 2026
Weakness typeCWE-184CWE-184

How to fix

Affected products

ProductAffected versionsFixed in
openclaw openclawv < 2026.4.82026.4.8
openclawnpmv < 2026.4.82026.4.8

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.