OS Command Injection in OpenClaw - CVE-2026-27209
Published: May 4, 2026
OpenClaw
Detailed vulnerability description
The vulnerability allows a remote user to execute unexpected shell commands.
The vulnerability exists due to command injection in the shell allowlist analyzer in src/infra/exec-approvals-analysis.ts when processing unquoted heredoc bodies in allowlisted exec commands. A remote user can supply a crafted unquoted heredoc containing expansion tokens to execute unexpected shell commands.
Only deployments with exec enabled in security=allowlist mode are vulnerable; standard default installations are not affected.