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 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local environment access (PR:L)
  2. Delivery
    Set HGRCPATH/RUSTC_WRAPPER/MAKEFLAGS to malicious payload
  3. Exploit
    Trigger OpenClaw build or exec operation
  4. Execution
    Env vars bypass denylist filter
  5. Persist
    Malicious build tool config or binary executes
  6. Impact
    Arbitrary code runs as local user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
Exploitation Conditions

Exploitation requires all of the following: (1) local access - AV:L in the CVSS 4.0 vector confirms this is not remotely exploitable; (2) the ability to set one or more of HGRCPATH, CARGO_BUILD_RUSTC_WRAPPER, RUSTC_WRAPPER, or MAKEFLAGS in the environment visible to the OpenClaw process (PR:L); (3) OpenClaw must subsequently invoke an exec or build operation that passes the unfiltered environment to a child process such as Mercurial, Cargo, or Make. The advisory explicitly states OpenClaw is a user-controlled local assistant scoped to a single-user trust model - not a multi-tenant service - which materially limits the attacker population. Exploitation is further constrained by AC:H: the attacker must both control the relevant env vars and trigger the specific build invocation path. Remote unauthenticated exploitation is not possible.

Impact

The CVSS 4.0 vector (AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N) scores 5.8, reflecting a local, high-complexity attack path with low privilege requirements and significant integrity impact. EPSS is extremely low at 0.03% (8th percentile), SSVC confirms exploitation status as none with automatable set to no, and no KEV listing exists - all signals converge on low current exploitation probability. The apparent tension between the 'RCE' label and the medium CVSS score is consistent and expected: the attack is locally constrained, not remotely exploitable, making real-world blast radius far smaller than a remote RCE. The advisory explicitly scopes risk to OpenClaw's user-controlled local assistant trust model and does not assume a multi-tenant service boundary, which significantly limits the realistic attacker population to scenarios involving compromised developer environments, malicious project-level dotfiles, or poisoned CI runner environments. SSVC Technical Impact being partial aligns with VC:L/VI:H and no availability or subsequent-system impact - integrity can be fully compromised for the user's session, but broader system-wide or network-wide impact is not indicated.

Exploit ScenarioDerived

An attacker with control over a developer's local shell environment - via a compromised dotfile, a malicious project-level .env, or environment injection in a CI runner - sets CARGO_BUILD_RUSTC_WRAPPER to point to a malicious binary. When the developer subsequently invokes OpenClaw and triggers a Rust build operation, OpenClaw passes the unfiltered environment to the child process, causing the malicious wrapper binary to execute with the developer's local privileges. No public exploit code has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

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.

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.

Affected VersionsENISA

OpenClaw 0 <2026.4.8

Affected Packages

npm openclaw fix: 2026.4.8

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

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.

Know when Openclaw gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) 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
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 Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
CVSS changed
Apr 28, 2026 - 19:52 NVD
5.3 (MEDIUM) 5.8 (MEDIUM)
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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Prevalence
Low
niche local AI coding assistant npm package, limited enterprise footprint
Threat Intel
1
1 source
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

29
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +29
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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-53857 HIGH POC
8.6 Jun 16

Authentication bypass in OpenClaw before 2026.5.3 allows remote attackers with low privileges to receive agent responses

CVE-2026-100530 HIGH POC
8.5 Sep 26

Directory-context bypass in OpenClaw before 2026.8.1 allows authenticated attackers with user interaction to reuse an 'a

CVE-2026-32064 HIGH POC
8.5 Mar 21

Unauthenticated access to the noVNC observer interface in OpenClaw's Docker sandbox browser allows anyone who can reach

CVE-2026-44118 HIGH POC
8.5 May 06

Authentication bypass in OpenClaw's MCP loopback interface allows local low-privilege attackers to escalate to owner-lev

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

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