Monitor vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
6.9

OpenClaw Service Can Run Arbitrary Commands with Elevated Privileges

GHSA-vffc-f7r7-rx2w
Summary

A security issue in OpenClaw's configuration tools allows an attacker to trick the system into running unauthorized commands with elevated privileges. This can happen if an attacker has access to the configuration settings and can influence how services are started or restarted. To fix this, update OpenClaw to version 2026.2.21 or later.

What to do
  • Update openclaw to version 2026.2.21.
Affected software
VendorProductAffected versionsFix available
– openclaw <= 2026.2.19-2 2026.2.21
Original title
OpenClaw version 2026.2.19-2 prior to 2026.2.21 contains a command injection vulnerability in systemd unit file generation where attacker-controlled environment values are not validated for CR/LF c...
Original description
OpenClaw version 2026.2.19-2 prior to 2026.2.21 contains a command injection vulnerability in systemd unit file generation where attacker-controlled environment values are not validated for CR/LF characters, allowing newline injection to break out of Environment= lines and inject arbitrary systemd directives. An attacker who can influence config.env.vars and trigger service install or restart can execute arbitrary commands with the privileges of the OpenClaw gateway service user.
ghsa CVSS4.0 8.6
Vulnerability type
CWE-77 Command Injection
Published: 3 Mar 2026 · Updated: 12 Mar 2026 · First seen: 6 Mar 2026