Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessControl parent process environment
-
DeliverySet GIT_DIR to attacker-controlled path
-
ExploitUser invokes OpenClaw workflow
-
ExecutionOpenClaw spawns git subprocess with inherited env
-
PersistGit operates on attacker-controlled repository
-
ImpactCorrupt or exfiltrate repository data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
|
| Exploitation Conditions | Exploitation requires local access to the same execution environment as OpenClaw (AV:L) and the ability to set environment variables that will be inherited by the OpenClaw process (PR:L). Attack complexity is high (AC:H) because the attacker must time the environment manipulation to precede an OpenClaw exec call that invokes git. The advisory explicitly states OpenClaw is a user-controlled local assistant and does not assume a multi-tenant service boundary, meaning exploitation is realistic only when a lower-privileged process or co-tenant can influence the environment of the user running OpenClaw. Exploitation is limited by: local-only attack vector (no remote exploitation path), high attack complexity requiring environment pre-seeding, and the product's design assumption of a single trusted user per instance. There is no authenticated/unauthenticated distinction applicable here as the CVSS 4.0 vector (PR:L) indicates low-privilege local access is required. |
| Impact | The CVSS 4.0 vector (AV:L/AC:H/PR:L) indicates local-only exploitation requiring low privileges and high attack complexity, consistent with the requirement to pre-set environment variables before OpenClaw executes. The score of 5.8 reflects limited confidentiality impact (VC:L) offset by high integrity impact (VI:H) on the vulnerable system, with no scope change to subsequent systems (SC/SI/SA all N). EPSS at 0.01% (3rd percentile) and SSVC signals - exploitation: none, automatable: no, technical impact: partial - all converge on low real-world exploitation likelihood. There is no CISA KEV listing and no public proof-of-concept. The advisory itself explicitly scopes the issue to OpenClaw's local-assistant trust model and disclaims any multi-tenant service boundary, further limiting practical blast radius. This is a genuine integrity risk for developers using OpenClaw in shared or containerized environments where environment variables can be influenced by co-tenants, but not a critical network-exploitable vulnerability. |
| Exploit ScenarioDerived | An attacker sharing a shell session or container with a developer running OpenClaw sets GIT_DIR to a path they control before the developer invokes an OpenClaw workflow that triggers a git operation. When OpenClaw spawns the git subprocess, it inherits the attacker-controlled GIT_DIR, causing git to read from and write to the attacker's repository rather than the intended one, allowing silent corruption of commits, HEAD pointers, or index state. No public exploit code exists at time of analysis, but the technique is straightforward for any process with access to the parent environment. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when Openclaw gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
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
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 Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
3DescriptionCVE.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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
Authentication bypass in OpenClaw before 2026.5.3 allows remote attackers with low privileges to receive agent responses
Directory-context bypass in OpenClaw before 2026.8.1 allows authenticated attackers with user interaction to reuse an 'a
Unauthenticated access to the noVNC observer interface in OpenClaw's Docker sandbox browser allows anyone who can reach
Authentication bypass in OpenClaw's MCP loopback interface allows local low-privilege attackers to escalate to owner-lev
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
EUVD-2026-26121
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB