Skip to main content
EPSS 0.7%top 47%

Openclaw cli: OpenClaw: Shell-wrapper detection missed env-argv assignment injection forms (CVE-2026-42435)

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

Description

OpenClaw CLI versions from 2026.2.22 up to but not including 2026.4.12 have a vulnerability where shell-wrapper detection missed certain environment variable assignment injection forms in argv. This could affect execution semantics by allowing high-risk shell environment variables to be manipulated. The issue was fixed in version 2026.4.12 and later.

CVSS v4.0

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Affected software

Homebrewmore threats →ghsa
openclaw-cli
pkg:brew/openclaw-cli
Affected versions
<2026.7.1

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:43:12 UTC

Technical Analysis

The OpenClaw CLI had a flaw in its shell-wrapper detection mechanism that failed to identify environment variable assignments passed via argv forms. This gap allowed potentially dangerous shell environment variables such as SHELLOPTS and PS4 to be set in ways that could alter execution behavior. The fix, introduced in pull request #65717 and commit 8f8492d172f4c5b4fd7dd9a47855ed620c8770ab, broadens detection and blocks these injection forms, mitigating the risk.

Potential Impact

Affected versions could allow manipulation of shell environment variables during execution preflight handling, potentially altering execution semantics and introducing high-risk shell environment controls. This could lead to unintended command execution behavior or security policy bypasses related to shell environment variables.

Mitigation Recommendations

Users should upgrade to OpenClaw CLI version 2026.4.12 or newer. The fix is included starting from this version, with the latest npm release 2026.4.14 containing the patch. No additional mitigation is required once upgraded.

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-42435
Osv Schema Version
1.7.3
Ecosystems
["Homebrew"]
Cvss Version
4.0

Threat ID: 6ac2459712601ec6a3165d1d

Added to database: 10/04/2026, 12:24:55 UTC

Last enriched: 10/04/2026, 12:43:12 UTC

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

Views: 1

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