Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. openclaw
  4. ›
  5. GHSA-vffc-f7r7-rx2w

GHSA-vffc-f7r7-rx2w: OpenClaw Improperly Neutralizes Line Breaks in systemd Unit Generation Enables Local Command Execution (Linux)

March 3, 2026

A command injection vulnerability exists in OpenClaw’s Linux systemd unit generation path. When rendering Environment= entries, attacker-controlled values are not rejected for CR/LF, and systemdEscapeArg() uses an incorrect whitespace-matching regex. This allows newline injection to break out of an Environment= line and inject standalone systemd directives (for example, ExecStartPre=). On service restart, the injected command is executed, resulting in local arbitrary command execution (local RCE) under the gateway service user.


References

  • github.com/advisories/GHSA-vffc-f7r7-rx2w
  • github.com/openclaw/openclaw
  • github.com/openclaw/openclaw/commit/61f646c41fb43cd87ed48f9125b4718a30d38e84
  • github.com/openclaw/openclaw/security/advisories/GHSA-vffc-f7r7-rx2w

Code Behaviors & Features

Detect and mitigate GHSA-vffc-f7r7-rx2w with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2026.2.21

Fixed versions

  • 2026.2.21

Solution

Upgrade to version 2026.2.21 or above.

Impact 8.4 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')

Source file

npm/openclaw/GHSA-vffc-f7r7-rx2w.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:18:47 +0000.