Skip to main content

Openclaw cli: OpenClaw's `system.run` env override filtering allowed dangerous helper-command pivots

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

Description

OpenClaw CLI versions up to 2026.3.2 contain a vulnerability in the system.run environment override sanitization that allows dangerous environment variable overrides to bypass allowlist and approval mechanisms. This enables an attacker with existing system.run invocation rights to influence subprocess behavior via environment variables like GIT_SSH_COMMAND and GIT_CONFIG_*, causing helper-command execution or config loading outside the reviewed command semantics. The issue is fixed in version 2026.3.7.

CVSS v3.1

Score 6.3medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Affected software

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

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:30:41 UTC

Technical Analysis

The vulnerability in OpenClaw CLI's system.run function involves insufficient sanitization of environment variable overrides. Specifically, dangerous override-only environment variables such as GIT_SSH_COMMAND and prefix families like GIT_CONFIG_* and NPM_CONFIG_* were not blocked, allowing attackers who can invoke system.run with env overrides to bypass allowlist or approval intent. This leads to subprocesses inheriting attacker-controlled environment variables that alter helper-command execution or configuration loading, diverging from the reviewed binary and arguments. The fix, released in version 2026.3.7, extends the sanitization to block these dangerous keys and prefixes while preserving trusted base environment behavior.

Potential Impact

An attacker with permission to invoke system.run and supply environment overrides can bypass allowlist and approval controls by steering allowlisted tools through environment variables that affect helper-command execution or configuration loading. This results in subprocess behavior that is not represented by the approved command line, potentially leading to unintended command execution or configuration manipulation. The severity is rated medium because exploitation requires existing execution capability.

Mitigation Recommendations

A patch is available in OpenClaw CLI version 2026.3.7 that addresses this vulnerability by extending environment override sanitization to block dangerous override-only keys and prefixes. Users should upgrade to version 2026.3.7 or later to remediate this issue.

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-GHSA-j425-whc4-4jgc
Osv Schema Version
1.7.3
Ecosystems
["Homebrew"]
Cvss Version
3.1

Threat ID: 6ac2458512601ec6a3164080

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

Last enriched: 10/04/2026, 12:30:41 UTC

Last updated: 10/04/2026, 12:30:41 UTC

Views: 3

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