GHSA-g375-h3v6-4873: OpenClaw: Heartbeat owner downgrade missed local async exec completion events
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 openclaw2026.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@latestPR #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 entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
