CVE-2026-42427: OpenClaw before 2026.4.8 contains a remote code execution vulnerability caused by missing environment variable
CVE-2026-42427 is a medium-severity flaw (CVSS 5.3) affecting openclaw. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.3 (Medium) |
| Attack vector | Local |
| Attack complexity | High |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.2% (top 92%) |
| CISA exploited list | No |
| Weakness | CWE-184 |
| Published | 2026-04-28 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-42427?
openclaw: upgrade to 2026.4.8. Exact commands for each OS are on this page.
Is CVE-2026-42427 being exploited?
CVE-2026-42427 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-42427 affect?
CVE-2026-42427 affects openclaw. Severity is medium (CVSS 5.3). 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
How urgent is CVE-2026-42427?
Priority 21/100. No elevated risk signals yet.
Software pages
Related CVEs
- CVE-2026-53855 HIGH 8.1 UPGRADE OpenClaw before 2026.4.2 contains an inline-eval bypass vulnerability allowing authenticated operators to weak
- CVE-2026-53857 HIGH 8.1 UPGRADE OpenClaw before 2026.5.3 contains a policy enforcement vulnerability where Zalo contacts with mutable display
- CVE-2026-53851 MEDIUM 5.3 UPGRADE OpenClaw before 2026.5.12 contains a notification bypass vulnerability allowing Slack reaction events to enter
- CVE-2026-53846 HIGH 7.1 UPGRADE OpenClaw before 2026.4.29 contains a path traversal vulnerability in the install helper that allows workspace
- CVE-2026-59261 HIGH 7.1 UPGRADE OpenClaw before 2026.5.28 contains a credential exposure vulnerability where workspace dotenv files can overri