critical9.6
CVE-2026-41294
OpenClaw before 2026.3.28 loads the current working directory .env file before trusted state-dir configuration, allowing environment variable injection.
Impact
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
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | openclaw | <= 2026.3.24 | 2026.3.28 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Openclaw | Openclaw | before 2026.3.28 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-8rh7-6779-cjqq
- https://github.com/openclaw/openclaw/security/advisories/GHSA-8rh7-6779-cjqq
- https://github.com/openclaw/openclaw/commit/6a793248024dca7685f63bcceb64a0096fd1586d
- https://github.com/openclaw/openclaw/releases/tag/v2026.3.28
- https://www.vulncheck.com/advisories/openclaw-environment-variable-injection-via-cwd-env-file