OS Command Injection in OpenClaw - CVE-2026-27209

 

OS Command Injection in OpenClaw - CVE-2026-27209

Published: May 4, 2026


Vulnerability identifier: #VU129406
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-27209
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: OpenClaw
Affected software:
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.


How to mitigate CVE-2026-27209

Install security update from vendor's website.

Sources