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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| OpenClaw | OpenClaw | < 2026.4.8 | 2026.4.8 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | openclaw | < 2026.4.8 | 2026.4.8 | GHSA-7437-7hg8-frrw |
Advisories 1
- WID-SEC-2026-1005 OpenClaw: Mehrere Schwachstellen BSI CERT-Bund (WID) · Apr 28, 2026
References
- GitHub Security Advisory (GHSA-7437-7hg8-frrw) vendor-advisory
- Patch Commit patch
- VulnCheck Advisory: OpenClaw < 2026.4.8 - Remote Code Execution via Build Tool Environment Variable Injection third-party-advisory