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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| OpenClaw | OpenClaw | < 2026.3.28 | 2026.3.28 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | openclaw | < 2026.3.28 | 2026.3.28 | GHSA-8rh7-6779-cjqq |
References
- GitHub Security Advisory (GHSA-8rh7-6779-cjqq) vendor-advisory
- VulnCheck Advisory: OpenClaw < 2026.3.28 - Environment Variable Injection via CWD .env File third-party-advisory