
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-41392 is an exec allowlist bypass vulnerability in OpenClaw (npm package) affecting all versions before 2026.3.31. The flaw allows low-privileged local attackers to inherit allowlist trust by invoking shell init-file wrapper options (--rcfile, --init-file, --startup-file), causing OpenClaw to treat the shell invocation as if an approved script were being executed directly. It was published on April 28, 2026, and assigned a CVSS v3.1 base score of 7.3 (High) and a CVSS v4.0 base score of 5.4 (Medium) (GitHub Advisory, Feedly).
The root cause is classified as CWE-184 (Incomplete List of Disallowed Inputs): OpenClaw's exec allowlist matching logic did not account for shell options that load external initialization files, allowing those options to be treated as part of an approved command shape (GitHub Advisory). Specifically, when exec allowlist or allow-always behavior was enabled, an attacker could craft a shell-wrapper command such as bash --rcfile scripts/evilrc scripts/save_crystal.sh, where scripts/save_crystal.sh matched an allowlisted path but the shell actually loaded the attacker-controlled evilrc initialization file first (GitHub Commit). The fix removes --rcfile, --init-file, and --startup-file from the set of options treated as value-carrying shell wrapper options and instead marks them as disqualifying, causing any command containing them to fail allowlist matching (GitHub Commit). Exploitation requires local access, low privileges, user interaction, and that exec allowlist or allow-always mode is active.
Successful exploitation allows an attacker to load and execute attacker-chosen shell initialization files under the trust context of an allowlisted script, effectively bypassing the exec allowlist protection mechanism. This can result in high-impact compromise of confidentiality, integrity, and availability on the affected system, as arbitrary code from the malicious init file executes with the privileges of the shell process (GitHub Advisory, Feedly). The advisory notes this is a narrower allowlist bypass rather than generic arbitrary command execution from an untrusted boundary, and it only applies when exec allowlist or allow-always behavior is enabled (GitHub Advisory).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of publication (Feedly). The EPSS score is approximately 0.02%, reflecting a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires local access, low privileges, user interaction, and a specific configuration (exec allowlist or allow-always mode enabled), which significantly limits the attack surface.
scripts/save_crystal.sh).scripts/evilrc) containing arbitrary commands to execute.bash --rcfile scripts/evilrc scripts/save_crystal.sh or bash --init-file=scripts/evilrc scripts/save_crystal.sh.bash, sh) spawned with --rcfile, --init-file, or --startup-file arguments pointing to unexpected or attacker-controlled file paths alongside an allowlisted script path.evilrc, .bashrc-like files in non-standard directories, or scripts in world-writable locations) referenced in shell invocations.execve calls with --rcfile or --init-file arguments.Upgrade OpenClaw (npm) to version 2026.3.31 or later, which rejects shell init-file options (--rcfile, --init-file, --startup-file) during allowlist matching (GitHub Advisory, GitHub Commit). The current published npm release 2026.4.1 (April 1, 2026) also contains the fix. As interim mitigations: restrict local access to systems running vulnerable OpenClaw versions, monitor for shell invocations using init-file options, and limit user privileges to reduce attack surface (Feedly).
The vulnerability was reported by researcher cyjhhh and published as a GitHub Security Advisory (GHSA-wpc6-37g7-8q4w) by maintainer steipete on April 2, 2026, with the fix credited to jacobtomlinson (GitHub Advisory). VulnCheck independently catalogued the advisory. No significant broader media coverage or notable community discussion has been identified beyond the standard vulnerability database entries.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."