CVE-2026-41294
OpenClaw has a CWD `.env` environment variable injection which bypasses host-env policy and allows config takeover
Severity by source
Trivy's own label is CRITICAL. Rated critical by GHSA.
Description
OpenClaw before 2026.3.28 loads the current working directory .env file before trusted state-dir configuration, allowing environment variable injection. Attackers can place a malicious .env file in a repository or workspace to override runtime configuration and security-sensitive environment settings during OpenClaw startup.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | openclaw | 2026.3.28 |
| minimos | openclaw | 2026.4.2-r0 |
References
- https://github.com/openclaw/openclaw
- https://github.com/openclaw/openclaw/commit/6a793248024dca7685f63bcceb64a0096fd1586d
- https://github.com/openclaw/openclaw/releases/tag/v2026.3.28
- https://github.com/openclaw/openclaw/security/advisories/GHSA-8rh7-6779-cjqq
- https://www.vulncheck.com/advisories/openclaw-environment-variable-injection-via-cwd-env-file