Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain write access to workspace
-
DeliveryPlant malicious .env and helper binary
-
ExploitDeveloper or CI triggers install step
-
ExecutionHelper loads .env and overrides npm_execpath
-
PersistAttacker binary executed as package manager
-
ImpactCode execution in build environment
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path verification
|
| Exploitation Conditions | Exploitation requires (1) the attacker to be able to write files into the OpenClaw project workspace - for example via a malicious commit, pull request, or shared filesystem access - specifically a crafted .env at a location the install helper will load, (2) a victim user or CI job to invoke OpenClaw's bundled-runtime-dependency install helper (the install/setup step that resolves npm_execpath) so the poisoned env is read, and (3) the targeted package-manager executable referenced by the overridden npm_execpath to exist on the local filesystem (the path-traversal lets the value point outside the workspace). Exploitation is limited to OpenClaw versions before 2026.4.29, requires local access to the workspace (AV:L), depends on user/CI action to run the install step (UI:A) and on the attack-requirement condition AT:P being met, and does not work against a freshly cloned trusted workspace with no attacker-supplied .env. |
| Impact | The provided CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N) describes a local, user-interaction-driven, high confidentiality/integrity impact issue and is consistent with a build-time supply-chain style flaw rather than a remotely reachable bug - base score 7.0 is appropriate. No EPSS score, no CISA KEV listing, and no public POC were provided, so this is best treated as an unexploited high-severity developer-side risk: the impact bar is high (arbitrary local code execution as the developer running the install), but the prerequisite of workspace write access and a developer triggering dependency setup materially constrains opportunistic abuse. Note the apparent tension between the CWE-426/description (an untrusted search path / env-driven hijack) and the listed tag 'Path Traversal' - the .env load path traversal is the delivery primitive while the search-path manipulation is the actual exploitation mechanism; defenders should treat this as supply-chain-class risk against build hosts, not a classic file-read traversal. |
| Exploit ScenarioDerived | An attacker contributes or commits a crafted .env file plus a small attacker-controlled executable into an OpenClaw project workspace (for example via a pull request or a shared dev environment); when a maintainer or CI runner subsequently runs the OpenClaw install helper, the helper reads the malicious .env, npm_execpath is rerouted via path traversal to the attacker's binary, and that binary is executed in place of npm/yarn as the dependency installer. The attacker thereby gains code execution in the build environment with the privileges of the user running the install, enabling secrets theft, lateral movement, or tampering with build artifacts. No public exploit identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 16, 2026
Untrusted search path in OpenClaw versions prior to 2026.4.29 lets workspace-local .env files override the npm_execpath variable consulted by the install helper, redirecting bundled dependency installation to an attacker-controlled package-manager binary. An attacker who can place files in the workspace can hijack the runtime dependency setup step to compromise the build environment under the developer's identity, with no public exploit identified at time of analysis.
RemediationAI
Vendor-released patch: upgrade OpenClaw to 2026.4.29 or later, which is the fixed release identified in GHSA-24vr-rprv-67rf (https://github.com/openclaw/openclaw/security/advisories/GHSA-24vr-rprv-67rf) and the VulnCheck advisory (https://www.vulncheck.com/advisories/openclaw-arbitrary-package-manager-execution-via-workspace-env-npm-execpath). Until the upgrade is applied, do not run OpenClaw install/setup steps against untrusted workspaces or repositories, delete or audit any unexpected .env files at the workspace root before invoking dependency installation, and explicitly unset or pin npm_execpath in the shell environment used to run installs so a workspace .env cannot override the resolved package-manager path (side effect: build scripts that rely on the calling package manager being auto-detected may need an explicit --npm/--yarn flag). For CI, restrict who can push .env files and run installs inside ephemeral, isolated runners so a hijacked package-manager binary cannot persist or reach long-lived secrets.
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 JavaScript/Node-based project that uses an install helper to fetch bundled runtime dependencies via the package manager indicated by the npm_execpath environment variable (a standard npm/Yarn convention pointing to the package-manager executable invoked for child scripts). Per CWE-426 (Untrusted Search Path), the helper resolves the executable path from environment input read out of project-local .env files, so a malicious value placed in a workspace .env can point npm_execpath at any binary on the local filesystem. Combined with path traversal in how the helper loads .env, this lets a relative path escape the expected workspace directory and reach an arbitrary executable, which the helper then runs as the package-installation tool. The single affected CPE, cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:*:*:*, covers all OpenClaw versions before 2026.4.29.
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:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Local workspace access plus a victim-run install (AV:L, UI:R); AC:H for the attack-requirement of a writable workspace and present package-manager target; PR:N since the attacker needs no OpenClaw auth; high C/I, no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
OpenClaw before 2026.4.29 contains a path traversal vulnerability in the install helper that allows workspace .env files to override the npm_execpath configuration used for bundled runtime dependency installation. Attackers with workspace access can execute unintended local package-manager executables during dependency setup to compromise the build environment.
Blast Radius
ecosystem impact- 1 npm packages depend on openclaw (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 2026.4.29.
Executive ViewAI
OpenClaw prior to version 2026.4.29 allows build environment hijacking through local .env file manipulation, enabling insiders or collaborators with workspace access to redirect package installations and compromise software builds before distribution. This creates supply chain contamination risk for organizations shipping software built with affected OpenClaw versions. No public exploit has been identified, but the attack requires only local file placement capability.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Enforce strict file system permissions preventing .env file writes by unauthorized users; (2) Monitor and alert on npm_execpath variable overrides or unexpected package manager process execution; (3) Run builds in ephemeral containers or isolated environments; (4) Require peer review and cryptographic signing of dependency modifications; (5) Implement build artifact scanning to detect unsigned or unexpected package manager outputs.
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
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
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-37148
GHSA-24vr-rprv-67rf
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB