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

GHSA-g375-h3v6-4873: OpenClaw: Heartbeat owner downgrade missed local async exec completion events

mediumCVSS 4.0 6.0

In OpenClaw 2026.3.31 up to 2026.4.10, heartbeat runs triggered by a local background exec completion kept owner-level tool access while the agent read that command's output. The check that drops owner rights only recognized remote-node completion text. Upgrade the openclaw npm package to 2026.4.10 or later.

Published Apr 17, 2026 · Analysis Oct 30, 2026

What an attacker can do

OpenClaw runs a heartbeat turn when an exec event arrives. If the event is an exec completion, the code sets hasExecCompletion, which forces ForceSenderIsOwnerFalse. That removes owner-level tool access while the agent processes exec output, since the output is untrusted. isExecCompletionEvent in src/infra/heartbeat-events-filter.ts matched only the remote-node wording, "Exec finished (node=...)".

Local background exec completions are emitted by maybeNotifyOnExit in bash-tools.exec-runtime.ts as "Exec completed (...)" or "Exec failed (...)". These did not match, so hasExecCompletion stayed false and the heartbeat run kept owner access.

The attacker needs a way to put text into the output of a local background command, for example a build log, a fetched page, or a file the agent processes. The text can then carry instructions that run with owner authority, such as calls to owner-only tools. The CVSS 4.0 vector rates integrity impact as high with low privileges. This is a prompt-injection amplifier. It does not give access on its own.

Who is affected

The openclaw npm package from 2026.3.31 up to, but not including, 2026.4.10. Earlier versions are outside the range. It applies when the agent starts local background exec commands and uses heartbeat runs. Check your version:

npm ls openclaw

2026.4.10 is the first stable tag with the fix, and 2026.4.14 includes it.

openclaw

Ecosystem
npm
Affected
>= 2026.3.31, < 2026.4.10
Fixed in
2026.4.10
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.4.10 or later:

npm install openclaw@latest

PR #64376 adds "exec completed" and "exec failed" patterns to isExecCompletionEvent, so local background exec completions now trigger the owner downgrade the same way remote-node completions did. It adds unit tests in heartbeat-events-filter.test.ts. The author did not test the full ForceSenderIsOwnerFalse behavior in a live gateway session, so check it in your own setup. The advisory gives no workaround. Until you upgrade, avoid running background commands whose output includes untrusted content.

How to tell if you were hit

Review agent transcripts for heartbeat turns that began with an "Exec completed (...)" or "Exec failed (...)" message and then made owner-only tool calls. Look at the exec output in those turns for instruction-like text. Check which background commands ran just before. Beam records agent shell commands and tool calls, which lets you line up a background command with the tool calls that followed it.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

Heartbeat owner downgrade missed local async exec completion events.

Affected Packages / Versions

  • Package: openclaw
  • Ecosystem: npm
  • Affected versions: >= 2026.3.31 < 2026.4.10
  • Patched versions: >= 2026.4.10

Impact

Local background exec completion text could be missed by heartbeat owner-downgrade detection, leaving a run in a more privileged context than intended after untrusted completion content.

Technical Details

The fix expands exec-completion detection to local background exec formats and adds targeted tests.

Fix

The issue was fixed in #64376. The first stable tag containing the fix is v2026.4.10, and [email protected] includes the fix.

Fix Commit(s)

  • 19a2e9ddb5a8a494abcba812bb11f51075026a27
  • PR: #64376

Release Process Note

Users should upgrade to openclaw 2026.4.10 or newer. The latest npm release, 2026.4.14, already includes the fix.

Credits

Thanks to @zsxsoft, with sponsorship from @KeenSecurityLab and @qclawer for reporting this issue.

Credited to zsxsoft, qclawer, KeenSecurityLab.

Questions

What is the heartbeat owner downgrade?

When a heartbeat is triggered by exec output, OpenClaw sets ForceSenderIsOwnerFalse to remove owner-level tool access, because the output is untrusted. For local background commands the check was skipped.

Which output formats were missed?

"Exec completed (...)" and "Exec failed (...)" from local background execution. Only the remote-node wording "Exec finished" was detected.

Which versions are affected?

2026.3.31 up to but not including 2026.4.10. The fix is in 2026.4.10 and later, including 2026.4.14.

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