GHSA-h3rm-6x7g-882f
MEDIUMOpenClaw's Node system.run approval hardening wrapper semantic drift can execute unintended local scripts
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
Blast Radius
Weekly download volume for affected packages — a proxy for how broadly this vulnerability is deployed.
openclawnpmDescription
Summary
In [email protected], node system.run approval-path hardening rewrote wrapper command argv in a way that changed execution semantics. A command shown/approved as a shell payload (for example echo SAFE) could execute a different local script when wrapper argv were rewritten.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected:
2026.3.1(latest published npm version as of March 2, 2026) - Fixed release:
2026.3.2(released)
Technical Details
Root cause was in node-host approval hardening for system.run:
src/node-host/invoke-system-run-plan.tsrewroteargv[0]to the resolved executable.- Wrapper resolution unwrapped dispatch wrappers, so input like
['env','sh','-c','echo SAFE']resolved executablesh. - The approved plan could become
['/bin/sh','sh','-c','echo SAFE']while approval text remainedecho SAFE.
That rewrite changed runtime behavior: /bin/sh interprets the extra sh positional argument as a script path, enabling execution of a local ./sh file from approved cwd instead of the approved payload text.
Impact
Approval-integrity break in host=node execution flow: operator-visible command text and executed behavior could diverge.
Exploit preconditions:
- attacker can influence wrapper argv and place a local file in approved working directory,
- operator grants approval for the displayed command.
Fix Commit(s)
dded569626b0d8e7bdab10b5e7528b6caf73a0f1
Fixed Version
- Patched in
[email protected].
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | openclaw | ≥ 2026.3.1&&< 2026.3.2 | 2026.3.2 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for openclaw. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.
Fix
Update openclaw to 2026.3.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-h3rm-6x7g-882f is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 pinpoints whether GHSA-h3rm-6x7g-882f is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.
Tailored to GHSA-h3rm-6x7g-882f. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-h3rm-6x7g-882f in your dependencies?
O3 detects GHSA-h3rm-6x7g-882f across npm dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.