Skip to main content
EPSS 0.1%top 97%

Openclaw cli: OpenClaw host-env blocklist missing `GIT_TEMPLATE_DIR` and `AWS_CONFIG_FILE` allows code execution via env override (CVE-2026-41332)

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.24 did not block the environment variables GIT_TEMPLATE_DIR and AWS_CONFIG_FILE in its host execution environment sanitization. These variables can redirect trusted tools like git and AWS CLI to attacker-controlled content, potentially allowing execution of untrusted code or loading of attacker-selected credentials. The issue is fixed in version 2026.3.28 and later.

CVSS v3.1

Score 4.9medium

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

Affected software

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

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:50:56 UTC

Technical Analysis

The OpenClaw CLI had a vulnerability in its host execution environment sanitization where the environment variables GIT_TEMPLATE_DIR and AWS_CONFIG_FILE were not blocked. These variables can influence the behavior of git and AWS CLI, respectively, by redirecting them to attacker-controlled configurations. An attacker who obtains an approved execution request could exploit this to execute untrusted code or load malicious credentials. The vulnerability affects versions from 2026.1.29 up to but not including 2026.3.28. The issue was fixed by commit 6eb82fba3c, which added these environment keys to the blocklist.

Potential Impact

An attacker with an approved execution request can manipulate git or AWS CLI behavior by overriding environment variables, leading to execution of untrusted code or loading attacker-chosen credentials. This can compromise the integrity and confidentiality of the host environment.

Mitigation Recommendations

A patch is available and included in OpenClaw CLI version 2026.3.28 and later. Users should upgrade to version 2026.3.28 or newer to mitigate this vulnerability.

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

Threat ID: 6ac245a612601ec6a31661a6

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

Last enriched: 10/04/2026, 12:50:56 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