Command injection in OpenClaw - CVE-2026-32063
Published: May 1, 2026
OpenClaw
Detailed vulnerability description
The vulnerability allows a local user to execute arbitrary commands.
The vulnerability exists due to improper neutralization of special elements in systemd unit generation in src/daemon/systemd-unit.ts when rendering Environment= entries from attacker-controlled configuration values. A local user can supply a crafted environment value containing a newline and injected systemd directives to execute arbitrary commands.
Exploitation requires the attacker to influence config.env.vars, invoke the install or reinstall path to write the unit file, and have the service restarted. The injected command runs with the privileges of the OpenClaw gateway service user.