CVE-2026-42427
published medium CVSS 4.0 · 5.8OpenClaw < 2026.4.8 - Remote Code Execution via Build Tool Environment Variable Injection
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| OpenClaw | — | OpenClaw0 to < 2026.4.8 (affected · semver) · 2026.4.8 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.8 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.3 | medium | VulnCheck · cna | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| OpenClaw | OpenClaw | 0 to < 2026.4.8 (affected · semver)2026.4.8 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-184 CWE-184: Incomplete List of Disallowed Inputs
References
3- Patch Commit https://github.com/openclaw/openclaw/commit/d7c3210cd6f5fdfdc1beff4c9541673e814354d5
- GitHub Security Advisory (GHSA-7437-7hg8-frrw) https://github.com/openclaw/openclaw/security/advisories/GHSA-7437-7hg8-frrw
- VulnCheck Advisory: OpenClaw < 2026.4.8 - Remote Code Execution via Build Tool Environment Variable Injection https://www.vulncheck.com/advisories/openclaw-remote-code-execution-via-build-tool-environment-variable-injection
Provider assertions
2VulnCheck · cna
OpenClaw < 2026.4.8 - Remote Code Execution via Build Tool Environment Variable Injection
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 491b6e9893bd7e8d980b587555a874af5716376cfa7ad3d6a3de4fa9ca73040d
- Ingested
- 23 Sep 2026, 09:14:19 UTC
- Source record
- Official CVE record