Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local low-privilege access to OpenClaw host
-
DeliveryPlant malicious git hook directory or fake AWS config file
-
ExploitCraft exec request injecting GIT_TEMPLATE_DIR or AWS_CONFIG_FILE
-
ExecutionSubmit request through OpenClaw's approved exec pathway
-
PersistUnsanitized env var passes to git or AWS CLI subprocess
-
ImpactExecute attacker-controlled hook code or load malicious credentials
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: (1) local, low-privilege access to the host running OpenClaw - remote unauthenticated exploitation is not possible given AV:L/PR:L in the CVSS 4.0 vector; (2) the ability to submit an 'approved exec request' to OpenClaw - the attacker's request must pass OpenClaw's own exec authorization gate, meaning arbitrary users who cannot issue exec requests are not exposed; (3) control over the value of GIT_TEMPLATE_DIR or AWS_CONFIG_FILE within the environment of the exec request, and the ability to place attacker-controlled content at the path specified by GIT_TEMPLATE_DIR (e.g., a git hooks directory) or a fake AWS config file at the AWS_CONFIG_FILE path. High attack complexity (AC:H) reflects that all three conditions must align. Non-default configuration is not strictly required, but OpenClaw must be performing git or AWS CLI operations through its exec mechanism for the vulnerable code path to be reachable. SSVC confirms this is not automatable. |
| Impact | The CVSS 4.0 vector (AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N) scores 5.8, reflecting the meaningful integrity impact alongside several limiting factors. Real-world risk is further dampened by an EPSS of 0.01% (3rd percentile), SSVC exploitation rated 'none', and SSVC automatable rated 'no' - all consistent signals that this is not currently being exploited at scale. The local attack vector (AV:L) is key: this is not a remotely triggerable flaw against default deployments. An attacker must already have low-privilege local access and must specifically have the ability to influence environment variables in the context of an approved exec request. The high attack complexity (AC:H) reflects these prerequisites. The integrity impact is rated high (VI:H) because git template hooks can yield code execution, while confidentiality is only low (VC:L), limited to credential redirection via AWS_CONFIG_FILE. No conflicting signals exist between sources - CVSS, EPSS, and SSVC all converge on a real but contextually limited risk profile. |
| Exploit ScenarioDerived | An attacker with local, low-privilege access to a host running a vulnerable OpenClaw instance sets GIT_TEMPLATE_DIR to a directory containing a malicious git hook (e.g., a post-checkout hook with a reverse shell payload), then submits an approved exec request that triggers a git operation such as clone or init. Because OpenClaw's host-env blocklist does not filter GIT_TEMPLATE_DIR, the variable passes through to the git subprocess, which loads and executes the attacker-controlled hook with the privileges of the OpenClaw process. No public exploit code has been identified at time of analysis, but the technique is well-documented in the git security ecosystem. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
Environment variable injection in OpenClaw (npm) versions through 2026.3.24 allows a local, low-privileged attacker who can submit approved exec requests to redirect git or AWS CLI behavior through attacker-controlled configuration files, enabling untrusted code execution via git template hooks or malicious AWS credential loading. The root cause is an incomplete host-env blocklist - specifically, GIT_TEMPLATE_DIR and AWS_CONFIG_FILE were absent from the sanitization policy in src/infra/host-env-security-policy.json and src/infra/host-env-security.ts. No public exploit has been identified at time of analysis; EPSS sits at the 3rd percentile and SSVC rates exploitation as none, indicating no known active threat activity.
RemediationAI
The primary fix is to upgrade the OpenClaw npm package to version 2026.3.28 or later, which is confirmed as the patched release per the vendor's GitHub Security Advisory (GHSA-m866-6qv5-p2fg) and commit 6eb82fba3cbfd0e50b179c1fada92e1e22dce7fa (commit message: 'Infra: block additional host exec env keys'). If an immediate upgrade is not possible, a targeted compensating control is to audit and strip GIT_TEMPLATE_DIR and AWS_CONFIG_FILE from any environment passed to OpenClaw exec request handlers at the process or container level using a wrapper script or process supervisor environment filter - this prevents the untrusted values from reaching git or AWS CLI invocations but may break legitimate use of custom AWS configuration files and should be tested for side effects. Additionally, restricting which principals can submit approved exec requests to only trusted, audited callers reduces the attacker's ability to reach the vulnerable code path. No patch version other than 2026.3.28 should be assumed safe; the fix version is independently confirmed by both the GHSA advisory and the EUVD entry.
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 an npm-distributed platform that executes host commands ('exec requests') on behalf of authorized callers. To prevent environment variable hijacking, it maintains a host-env blocklist (CWE-184: Incomplete List of Disallowed Inputs) implemented in src/infra/host-env-security-policy.json and src/infra/host-env-security.ts. The blocklist failed to include GIT_TEMPLATE_DIR, which git uses to load template files (including hooks that execute arbitrary scripts on operations like clone or init), and AWS_CONFIG_FILE, which the AWS CLI uses to locate its configuration, potentially redirecting credential sources or endpoint overrides. Both variables are well-known environment-based injection vectors that allow trusted, signed binaries to execute untrusted content - a supply-chain-adjacent technique. The affected CPE is cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:*:*:* covering all versions up to and including 2026.3.24.
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 vector and low privileges required for approved exec access; high complexity due to multi-condition prerequisites; integrity high from git hook code execution, confidentiality low from AWS credential redirection only.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
4DescriptionCVE.org
OpenClaw before 2026.3.28 contains an environment variable sanitization vulnerability where GIT_TEMPLATE_DIR and AWS_CONFIG_FILE are not blocked in the host-env blocklist. Attackers can exploit approved exec requests to redirect git or AWS CLI behavior through attacker-controlled configuration files to execute untrusted code or load malicious credentials.
Blast Radius
ecosystem impact- 3 npm packages depend on openclaw (3 direct, 0 indirect)
Ecosystem-wide dependent count for version 2026.3.28.
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-25315
GHSA-wcm7-94wg-h74h
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB