openclaw
Affected
- introduced
0, fixed2026.3.31(semver)
Fixed versions
2026.3.31
Fix
- Fixed version
2026.3.31npm install [email protected]
Advisory
Also known as: CVE-2026-41392
OpenClaw: Shell init-file options could satisfy exec allowlist script matching
Summary
Before OpenClaw 2026.3.31, exec allowlist matching could treat shell init-file wrapper invocations as if the approved script itself were being executed. Shell options such as --rcfile, --init-file, and --startup-file could therefore inherit allowlist trust from a matched script path even though the shell loaded attacker-chosen initialization first.
Impact
This issue only applied when exec allowlist or allow-always behavior was enabled and the attacker could steer a shell-wrapper command shape that used init-file options. The result was a narrower allowlist bypass, not generic arbitrary command execution from an untrusted boundary.
Affected Packages / Versions
openclaw (npm)< 2026.3.31>= 2026.3.312026.4.1Fix Commit(s)
0c8375424620e12777ef24c162eedc7e9fcfd7e3 — reject shell init-file script matchesRelease Process Note
The fix shipped in OpenClaw 2026.3.31 on March 31, 2026. The current published npm release 2026.4.1 from April 1, 2026 also contains the fix.
Thanks @cyjhhh for reporting.
Medium Basis: The source's own band: MODERATE
0, fixed 2026.3.31 (semver)2026.3.31
2026.3.31npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0