openclaw
Affected
- introduced
0, fixed2026.3.28(semver)
Fixed versions
2026.3.28
Fix
- Fixed version
2026.3.28npm install [email protected]
Advisory
Also known as: CVE-2026-41294
OpenClaw has a CWD .env environment variable injection which bypasses host-env policy and allows config takeover
Summary
OpenClaw loaded the current working directory .env before trusted state-dir configuration, allowing untrusted workspace state to inject host environment values.
Impact
A repository or workspace containing a malicious .env file could override runtime configuration and security-sensitive environment settings when OpenClaw started there.
Affected Component
src/infra/dotenv.ts, src/cli/dotenv.ts
Fixed Versions
<= 2026.3.24>= 2026.3.282026.3.28 contains the fix.Fix
Fixed by commit 6a79324802 (Filter untrusted CWD .env entries before OpenClaw startup).
Critical Basis: The source's own band: CRITICAL
0, fixed 2026.3.28 (semver)2026.3.28
2026.3.28npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0