Skip to main content

OpenClaw CVE-2026-42427

| EUVDEUVD-2026-26129 MEDIUM
Incomplete List of Disallowed Inputs (CWE-184)
2026-04-28 VulnCheck GHSA-7437-7hg8-frrw
5.8
CVSS 4.0 · NVD
Share

Severity by source

NVD PRIMARY
5.8 MEDIUM
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
6.4 MEDIUM

Local vector with high complexity; low privilege suffices; scope changes as injected env vars hijack child build tool processes outside OpenClaw's own security context.

3.1 AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:H/A:N
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
X

Lifecycle Timeline

6
Source Code Evidence Fetched
Jul 24, 2026 - 04:15 vuln.today
Analysis Generated
Jul 24, 2026 - 04:15 vuln.today
CVSS changed
Apr 28, 2026 - 19:52 NVD
5.3 (MEDIUM) 5.8 (MEDIUM)
EUVD ID Assigned
Apr 28, 2026 - 19:30 euvd
EUVD-2026-26129
Patch released
Apr 28, 2026 - 19:30 nvd
Patch available
CVE Published
Apr 28, 2026 - 18:10 nvd
MEDIUM 5.8

DescriptionCVE.org

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.

AnalysisAI

Remote code execution in OpenClaw (npm) before version 2026.4.8 is achievable by injecting malicious build tool environment variables - specifically HGRCPATH, CARGO_BUILD_RUSTC_WRAPPER, RUSTC_WRAPPER, and MAKEFLAGS - which were absent from the application's exec environment denylist. Because OpenClaw is a user-controlled local assistant, an attacker with the ability to set environment variables on the host can influence exec commands invoked by the tool and achieve arbitrary code execution. No public exploit code has been identified at time of analysis, and SSVC signals indicate no current exploitation activity, but the integrity impact (VI:H) is significant when exploitation conditions are met.

Technical ContextAI

OpenClaw is an npm-distributed local AI coding assistant (CPE: cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:*:*:*). The vulnerability class is CWE-184 (Incomplete List of Disallowed Inputs): the application maintains a denylist of environment variables filtered before passing the environment to child processes or exec calls. Four security-sensitive build tool variables - HGRCPATH (Mercurial config path override), CARGO_BUILD_RUSTC_WRAPPER and RUSTC_WRAPPER (Rust/Cargo compiler wrapper redirects), and MAKEFLAGS (GNU Make flag injection) - were absent from this denylist. These variables are natively respected by their respective build tools and can redirect compilation steps to execute attacker-controlled binaries or load attacker-controlled configurations, injecting code into the host build execution context. The vulnerability class is related to GHSA-cm8v-2vh9-cxf3, indicating a known and recurring pattern of environment variable injection against developer tooling.

RemediationAI

Upgrade the OpenClaw npm package to version 2026.4.8 or later, which adds HGRCPATH, CARGO_BUILD_RUSTC_WRAPPER, RUSTC_WRAPPER, and MAKEFLAGS to the exec environment denylist. The vendor-confirmed fix is at commit d7c3210cd6f5fdfdc1beff4c9541673e814354d5 (https://github.com/openclaw/openclaw/commit/d7c3210cd6f5fdfdc1beff4c9541673e814354d5), re-verified against main before publication with targeted regression tests per the GHSA advisory. If immediate upgrade is not feasible, unset these four environment variables in the shell session before invoking OpenClaw (e.g., unset HGRCPATH CARGO_BUILD_RUSTC_WRAPPER RUSTC_WRAPPER MAKEFLAGS) - note this will break legitimate Mercurial, Cargo, and Make workflows for the duration of the session. A stronger compensating control is launching OpenClaw with a clean environment (env -i plus explicit re-export of needed variables), but this requires careful enumeration of dependencies and may disrupt tool integrations.

CVE-2026-28446 CRITICAL POC
9.4 Mar 05

Auth bypass in OpenClaw voice-call extension before 2026.2.1. EPSS 0.68%. PoC and patch available.

CVE-2026-33579 CRITICAL POC
9.4 Mar 31

Privilege escalation in OpenClaw (pre-2026.3.28) allows unauthenticated remote attackers to gain administrative access b

CVE-2026-32042 HIGH POC
8.8 Mar 21

OpenClaw versions 2026.2.22 through 2026.2.24 contain a privilege escalation vulnerability that allows authenticated att

CVE-2026-32051 HIGH POC
8.8 Mar 21

An authorization mismatch vulnerability in OpenClaw versions prior to 2026.3.1 allows authenticated users with operator.

CVE-2026-25253 HIGH POC
8.8 Feb 01

OpenClaw versions prior to 2026.1.29 automatically establish WebSocket connections to attacker-controlled gateway URLs e

CVE-2026-32846 HIGH POC
8.7 Mar 26

Path traversal in OpenClaw through version 2026.3.23 enables unauthenticated remote attackers to read arbitrary files in

CVE-2026-32064 HIGH POC
7.7 Mar 21

OpenClaw sandbox browser functionality launches x11vnc for noVNC observer sessions without requiring authentication, all

CVE-2026-32055 HIGH POC
7.6 Mar 21

OpenClaw versions before 2026.2.26 allow authenticated attackers to write arbitrary files outside the workspace director

CVE-2026-32056 HIGH POC
7.5 Mar 21

OpenClaw versions prior to 2026.2.22 contain a shell environment variable injection vulnerability in the system.run func

CVE-2026-32049 HIGH POC
7.5 Mar 21

OpenClaw versions prior to 2026.2.22 contain a resource exhaustion vulnerability where the application fails to consiste

CVE-2026-32048 HIGH POC
7.5 Mar 21

OpenClaw versions prior to 2026.3.1 contain a sandbox escape vulnerability that allows authenticated attackers with low

CVE-2026-25474 HIGH POC
7.5 Feb 19

OpenClaw versions 2026.1.30 and below fail to validate Telegram webhook secret tokens when `channels.telegram.webhookSec

Share

CVE-2026-42427 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy