Skip to main content

OpenClaw CVE-2026-41915

| EUVDEUVD-2026-26121 MEDIUM
Incomplete List of Disallowed Inputs (CWE-184)
2026-04-28 VulnCheck
5.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Control parent process environment
  2. Delivery
    Set GIT_DIR to attacker-controlled path
  3. Exploit
    User invokes OpenClaw workflow
  4. Execution
    OpenClaw spawns git subprocess with inherited env
  5. Persist
    Git operates on attacker-controlled repository
  6. Impact
    Corrupt 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

OpenClaw 0 <2026.4.8

Affected Packages

npm openclaw fix: 2026.4.8

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

Vendor (VulnCheck) PRIMARY 5.8 MEDIUM
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
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
CVSS changed
Apr 28, 2026 - 19:52 NVD
5.3 (MEDIUM) 5.8 (MEDIUM)
Patch released
Apr 28, 2026 - 19:30 nvd
Patch available
CVE Published
Apr 28, 2026 - 18:10 nvd
MEDIUM 5.8

DescriptionCVE.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

EPSS Score
0.0%
Top 97% exploitable
Prevalence
Rare
niche local AI coding assistant, limited npm deployment footprint
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

29
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +29
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-28446 CRITICAL POC
9.4 Mar 05

Auth bypass in OpenClaw voice-call extension before 2026.2.1. EPSS 0.68%. PoC and patch available.

CVE-2026-33579 CRITICAL POC
9.4 Mar 31

Privilege escalation in OpenClaw (pre-2026.3.28) allows unauthenticated remote attackers to gain administrative access b

CVE-2026-32042 HIGH POC
8.8 Mar 21

OpenClaw versions 2026.2.22 through 2026.2.24 contain a privilege escalation vulnerability that allows authenticated att

CVE-2026-32051 HIGH POC
8.8 Mar 21

An authorization mismatch vulnerability in OpenClaw versions prior to 2026.3.1 allows authenticated users with operator.

CVE-2026-25253 HIGH POC
8.8 Feb 01

OpenClaw versions prior to 2026.1.29 automatically establish WebSocket connections to attacker-controlled gateway URLs e

CVE-2026-32846 HIGH POC
8.7 Mar 26

Path traversal in OpenClaw through version 2026.3.23 enables unauthenticated remote attackers to read arbitrary files in

CVE-2026-53857 HIGH POC
8.6 Jun 16

Authentication bypass in OpenClaw before 2026.5.3 allows remote attackers with low privileges to receive agent responses

CVE-2026-100530 HIGH POC
8.5 Sep 26

Directory-context bypass in OpenClaw before 2026.8.1 allows authenticated attackers with user interaction to reuse an 'a

CVE-2026-32064 HIGH POC
8.5 Mar 21

Unauthenticated access to the noVNC observer interface in OpenClaw's Docker sandbox browser allows anyone who can reach

CVE-2026-44118 HIGH POC
8.5 May 06

Authentication bypass in OpenClaw's MCP loopback interface allows local low-privilege attackers to escalate to owner-lev

CVE-2026-32055 HIGH POC
7.6 Mar 21

OpenClaw versions before 2026.2.26 allow authenticated attackers to write arbitrary files outside the workspace director

CVE-2026-32056 HIGH POC
7.5 Mar 21

OpenClaw versions prior to 2026.2.22 contain a shell environment variable injection vulnerability in the system.run func

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy