Untrusted search path in OpenClaw - CVE-2026-41294
Published: April 30, 2026
OpenClaw
Detailed vulnerability description
The vulnerability allows a remote attacker to override runtime configuration and security-sensitive environment settings.
The vulnerability exists due to an untrusted search path in src/infra/dotenv.ts and src/cli/dotenv.ts when loading the current working directory .env before trusted state-dir configuration. A remote attacker can place a malicious .env file in a repository or workspace to override runtime configuration and security-sensitive environment settings.
User interaction is required because OpenClaw must be started in the malicious repository or workspace.