Skip to main content
EPSS 0.2%top 95%

Openclaw cli: OpenClaw: Shell init-file options could satisfy exec allowlist script matching (CVE-2026-41392)

0
High
Published: 08/13/2026 (08/13/2026, 17:21:32 UTC)
Source: GCVE Database
Product: openclaw-cli

Description

OpenClaw CLI versions before 2026.3.31 have a vulnerability in the exec allowlist feature where shell init-file options like --rcfile, --init-file, and --startup-file could bypass allowlist checks. This allows an attacker to execute attacker-chosen initialization scripts despite the allowlist, but only when exec allowlist or allow-always behavior is enabled and the attacker can control the shell-wrapper command shape. The issue was fixed in version 2026.3.31.

CVSS v3.1

Score 7.3high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Affected software

Homebrewmore threats →ghsa
openclaw-cli
pkg:brew/openclaw-cli
Affected versions
>=2026.1.29 <2026.3.31

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/04/2026, 12:46:06 UTC

Technical Analysis

OpenClaw CLI prior to version 2026.3.31 improperly handled exec allowlist matching by treating shell init-file wrapper invocations as if the approved script itself were executed. This flaw allowed shell options such as --rcfile, --init-file, and --startup-file to inherit allowlist trust, enabling an attacker to run initialization scripts of their choosing despite the presence of an exec allowlist. The vulnerability requires that exec allowlist or allow-always behavior is enabled and that the attacker can influence the shell-wrapper command shape. The issue was resolved by rejecting shell init-file script matches in commit 0c8375424620e12777ef24c162eedc7e9fcfd7e3, shipped in OpenClaw 2026.3.31.

Potential Impact

The vulnerability enables a limited bypass of the exec allowlist feature, allowing attacker-controlled shell initialization scripts to run with allowlist trust. This does not result in generic arbitrary command execution from untrusted boundaries but can lead to execution of unauthorized initialization code under specific conditions. The impact includes potential compromise of confidentiality, integrity, and availability as indicated by the CVSS score.

Mitigation Recommendations

A patch is available and was released in OpenClaw version 2026.3.31. Users should upgrade to version 2026.3.31 or later (e.g., 2026.4.1) to mitigate this vulnerability. No additional mitigation steps are required if the patch is applied.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
BREW-openclaw-cli-CVE-2026-41392
Osv Schema Version
1.7.3
Ecosystems
["Homebrew"]
Cvss Version
3.1

Threat ID: 6ac2459c12601ec6a3165d62

Added to database: 10/04/2026, 12:25:00 UTC

Last enriched: 10/04/2026, 12:46:06 UTC

Last updated: 10/04/2026, 16:08:38 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses