NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · OpenClaw

GHSA-ff98-w8hj-qrxf: OpenClaw plugin runtime command execution is part of trusted plugin boundary

mediumCVSS 4.0 6.9

This OpenClaw advisory is a trust-boundary clarification, not a sandbox escape. Plugins run in-process with the same OS privileges as OpenClaw, and `runtime.system.runCommandWithTimeout` lets them run commands. The advisory record lists versions up to 2026.2.17 and patched version 2026.2.19. The practical defense is to install only trusted plugins and pin them with `plugins.allow`.

Published Mar 3, 2026 · Analysis Oct 31, 2026

What an attacker can do

OpenClaw plugins and extensions load into the OpenClaw process and are treated as trusted code. The plugin runtime exposes runtime.system.runCommandWithTimeout, which runs OS commands. Because a plugin already has the process's privileges, this helper does not cross any extra sandbox boundary. The CWE tag is OS command injection, but the advisory describes a documented trust model rather than a bug that turns data into commands.

The risk is therefore about which plugins you install. A malicious or compromised plugin can run commands as the user running OpenClaw, read that user's files and secrets, and reach anything the host can reach. Nobody gets this without getting a plugin loaded first, for example through a typosquatted package, a poisoned update or a plugin copied from an untrusted source.

The fix commit does not add a new restriction. It restores the helper's default availability and records the boundary in SECURITY.md under a new Plugin Trust Boundary section: runtime helpers are convenience APIs, not a sandbox.

Who is affected

The advisory record marks the openclaw npm package at 2026.2.17 and earlier as affected, with 2026.2.19 as the patched version. Any install that loads third-party plugins carries the trust assumption regardless of version, because the command helper is available to plugins by default.

Check your version and installed plugins:

npm ls openclaw

Then review which plugin IDs are enabled in your OpenClaw configuration and whether plugins.allow is set.

openclaw

Ecosystem
npm
Affected
< 2026.2.19
Fixed in
2026.2.19
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.2.19:

npm install [email protected]

The fix commit (2e421f32) is mainly documentation and config cleanup. It adds the Plugin Trust Boundary section to SECURITY.md, removes the plugins.runtime.allowLegacyExec setting, and leaves runCommandWithTimeout available to trusted in-process plugins. Upgrading does not make plugins safe. The advisory's remediation is to install only trusted plugins and to use plugins.allow to pin explicit trusted plugin IDs.

How to tell if you were hit

List installed and enabled plugins and compare them with the set you meant to trust. Look for plugins you did not add, recent plugin updates and unexpected child processes spawned by the OpenClaw process, such as shells, curl or package managers. Check whether plugins.allow is empty, which means no explicit pinning. Review shell activity from the OpenClaw user for commands the agent never needed. Beam's record of agent shell commands can help here if its hooks cover the agents on that host.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

OpenClaw plugins/extensions run in-process and are treated as trusted code. This advisory tracks trust-boundary clarification around plugin runtime command execution (runtime.system.runCommandWithTimeout).

Impact

Plugins already execute with the same OS privileges as the OpenClaw process. Exposing runtime command helpers does not cross an additional sandbox boundary.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Latest published version reviewed: 2026.2.17
  • Affected range for this advisory record: <= 2026.2.17
  • Planned patched version metadata: 2026.2.19 (next release line)

Fix Commit(s)

  • 2e421f32dfc589c02706265fd3c3137ffc06c4b1

Remediation

  • Install only trusted plugins.
  • Use plugins.allow to pin explicit trusted plugin IDs.
  • SECURITY.md now explicitly documents that plugin runtime helpers are convenience APIs, not a sandbox boundary.

OpenClaw thanks @markmusson for reporting.

Credited to markmusson.

Questions

Is GHSA-ff98-w8hj-qrxf a vulnerability I can be attacked through directly?

Not on its own. It documents that plugins are trusted code with the OpenClaw process's OS privileges. An attacker first needs a malicious plugin installed.

How do I limit which plugins can run?

Set plugins.allow to the explicit plugin IDs you trust, and install plugins only from sources you have reviewed.

Does upgrading to 2026.2.19 sandbox plugins?

No. SECURITY.md states that plugin runtime helpers are convenience APIs, not a sandbox boundary.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More OpenClaw vulnerabilities

All OpenClaw entries