CVE-2026-42427 MEDIUM

CVE-2026-42427: OpenClaw < 2026.4.8 - Remote Code Execution via Build Tool Environment Variable Injection

Vendor Openclaw
Product OpenClaw
Weakness CWE-184
Published April 28, 2026
Last update April 29, 2026

CVSS base score

5.8/10
Attack vector Local
Attack complexity High
Privileges required Low
User interaction None
Confidentiality
Integrity

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

April 28, 2026 CVE published
April 29, 2026 Record updated