Openclaw cli: OpenClaw: GIT_DIR and related git plumbing env vars missing from exec env denylist (GHSA-m866-6qv5-p2fg variant) (CVE-2026-41915)
Description
OpenClaw CLI versions up to 2026.3.30 have a vulnerability where Git plumbing environment variables such as GIT_DIR were not removed from the execution environment denylist. This omission could allow redirection of Git operations within the local assistant context. The issue was fixed in version 2026.4.8.
CVSS v3.1
Score 5.3medium
Affected software
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
Technical Analysis
The OpenClaw CLI had a security issue (CVE-2026-41915) where Git plumbing environment variables, including GIT_DIR, were missing from the execution environment denylist. This allowed these variables to persist in the environment during host exec calls, potentially redirecting Git operations. The vulnerability affects versions of the openclaw package from 2026.1.29 up to but not including 2026.4.8. The fix was committed and released in version 2026.4.8, with targeted regression tests confirming the resolution.
Potential Impact
The vulnerability could allow an attacker with local user privileges to influence Git operations by redirecting them through environment variables that were not properly sanitized. This could lead to unauthorized modification or interference with Git repositories accessed by OpenClaw. The CVSS score is 5.3 (medium severity), indicating limited but notable impact with low attack vector (local), high attack complexity, and low privileges required.
Mitigation Recommendations
A patch is available and should be applied by upgrading to openclaw version 2026.4.8 or later. The fix removes Git plumbing environment variables from the execution environment denylist, preventing redirection of Git operations. No additional mitigation steps are indicated by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-openclaw-cli-CVE-2026-41915
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Threat ID: 6ac2459a12601ec6a3165d48
Added to database: 10/04/2026, 12:24:58 UTC
Last enriched: 10/04/2026, 12:44:30 UTC
Last updated: 10/04/2026, 16:08:38 UTC
Views: 1
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.