OpenClaw up to 2026.4.7 Environment Variable incomplete blacklist
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 4.8 | $0-$5k | 0.00 |
Summary
A vulnerability identified as critical has been detected in OpenClaw up to 2026.4.7. Affected by this vulnerability is an unknown functionality of the component Environment Variable Handler. This manipulation of the argument HGRCPATH/CARGO_BUILD_RUSTC_WRAPPER/RUSTC_WRAPPER/MAKEFLAGS causes incomplete blacklist. The identification of this vulnerability is CVE-2026-42427. The attack can only be executed locally. There is no exploit available. You should upgrade the affected component.
Details
A vulnerability classified as critical was found in OpenClaw up to 2026.4.7. Affected by this vulnerability is some unknown functionality of the component Environment Variable Handler. The manipulation of the argument HGRCPATH/CARGO_BUILD_RUSTC_WRAPPER/RUSTC_WRAPPER/MAKEFLAGS with an unknown input leads to a incomplete blacklist vulnerability. The CWE definition for the vulnerability is CWE-184. The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete, leading to resultant weaknesses. As an impact it is known to affect confidentiality, integrity, and availability. The summary by CVE is:
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.
It is possible to read the advisory at github.com. This vulnerability is known as CVE-2026-42427 since 04/27/2026. The exploitation appears to be difficult. Attacking locally is a requirement. Technical details of the vulnerability are known, but there is no available exploit. The attack technique deployed by this issue is T1562.006 according to MITRE ATT&CK.
Upgrading to version 2026.4.8 eliminates this vulnerability. Applying the patch d7c3210cd6f5fdfdc1beff4c9541673e814354d5 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the vulnerability database at EUVD (EUVD-2026-26129). Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Product
Type
Name
Version
License
Website
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒
CVSSv3
VulDB Meta Base Score: 4.9VulDB Meta Temp Score: 4.8
VulDB Base Score: 4.5
VulDB Temp Score: 4.3
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA Base Score: 5.3
CNA Vector (VulnCheck): 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Incomplete blacklistCWE: CWE-184 / CWE-183 / CWE-20
CAPEC: 🔒
ATT&CK: 🔒
Physical: Partially
Local: Yes
Remote: No
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: OpenClaw 2026.4.8
Patch: d7c3210cd6f5fdfdc1beff4c9541673e814354d5
Timeline
04/27/2026 CVE reserved04/28/2026 Advisory disclosed
04/28/2026 VulDB entry created
04/29/2026 VulDB entry last update
Sources
Product: github.comAdvisory: GHSA-7437-7hg8-frrw
Status: Confirmed
CVE: CVE-2026-42427 (🔒)
GCVE (CVE): GCVE-0-2026-42427
GCVE (VulDB): GCVE-100-360019
EUVD: 🔒
Entry
Created: 04/28/2026 21:56Updated: 04/29/2026 02:42
Changes: 04/28/2026 21:56 (80), 04/29/2026 02:42 (1)
Complete: 🔍
Cache ID: 216::103
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.