Severity by source
CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Local-only vector with low privilege and high complexity required to pre-seed GIT_DIR; integrity impact is high but no availability or scope change.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
6DescriptionCVE.org
OpenClaw before 2026.4.8 fails to remove git plumbing environment variables from the execution environment before host exec operations. Attackers can exploit this by setting GIT_DIR and related variables to redirect git operations and compromise repository integrity.
AnalysisAI
Git environment variable injection in OpenClaw (npm) before 2026.4.8 allows a local low-privileged attacker to redirect git operations by setting GIT_DIR and related plumbing variables in the process environment prior to host exec calls. The root cause is an incomplete denylist (CWE-184) that strips some but not all dangerous environment variables before shelling out. No public exploit or active exploitation has been identified at time of analysis; EPSS of 0.01% (3rd percentile) and SSVC exploitation status of 'none' corroborate low near-term exploitation likelihood.
Technical ContextAI
OpenClaw is a user-controlled local AI assistant distributed as an npm package (cpe:2.3:a:openclaw:openclaw). When the assistant performs host exec operations - spawning subprocesses that invoke git - it sanitizes the inherited environment via a denylist. CWE-184 (Incomplete List of Disallowed Inputs) captures the flaw: the denylist omitted GIT_DIR and related git plumbing variables such as GIT_WORK_TREE and GIT_INDEX_FILE. Because these variables are inherited verbatim by child processes, an attacker who can influence the parent environment can redirect any git operation to an arbitrary directory they control, overriding the repository the tool intends to operate on. The GHSA advisory notes this is a variant of the known GHSA-m866-6qv5-p2fg pattern, indicating a recurring class of env-sanitization failures in AI coding assistant tooling.
RemediationAI
Upgrade the openclaw npm package to version 2026.4.8 or later using 'npm install openclaw@2026.4.8' or 'npm update openclaw'. The fix is pinned to commit d7c3210cd6f5fdfdc1beff4c9541673e814354d5 on the main branch, as confirmed by the GHSA advisory at https://github.com/openclaw/openclaw/security/advisories/GHSA-cm8v-2vh9-cxf3. If immediate upgrade is not feasible, a compensating control is to run OpenClaw in a process with a minimal, explicitly constructed environment (e.g., via env -i in a wrapper script) that excludes GIT_DIR, GIT_WORK_TREE, GIT_INDEX_FILE, GIT_OBJECT_DIRECTORY, and GIT_ALTERNATE_OBJECT_DIRECTORIES before launching the tool; this prevents variable inheritance but may break legitimate proxy or toolchain configuration if other environment variables are also stripped.
Auth bypass in OpenClaw voice-call extension before 2026.2.1. EPSS 0.68%. PoC and patch available.
Privilege escalation in OpenClaw (pre-2026.3.28) allows unauthenticated remote attackers to gain administrative access b
OpenClaw versions 2026.2.22 through 2026.2.24 contain a privilege escalation vulnerability that allows authenticated att
An authorization mismatch vulnerability in OpenClaw versions prior to 2026.3.1 allows authenticated users with operator.
OpenClaw versions prior to 2026.1.29 automatically establish WebSocket connections to attacker-controlled gateway URLs e
Path traversal in OpenClaw through version 2026.3.23 enables unauthenticated remote attackers to read arbitrary files in
OpenClaw sandbox browser functionality launches x11vnc for noVNC observer sessions without requiring authentication, all
OpenClaw versions before 2026.2.26 allow authenticated attackers to write arbitrary files outside the workspace director
OpenClaw versions prior to 2026.2.22 contain a shell environment variable injection vulnerability in the system.run func
OpenClaw versions prior to 2026.2.22 contain a resource exhaustion vulnerability where the application fails to consiste
OpenClaw versions prior to 2026.3.1 contain a sandbox escape vulnerability that allows authenticated attackers with low
OpenClaw versions 2026.1.30 and below fail to validate Telegram webhook secret tokens when `channels.telegram.webhookSec
Same weakness CWE-184 – Incomplete List of Disallowed Inputs
View allSame technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-26121