Skip to main content

OpenClaw CVE-2026-45004

| EUVDEUVD-2026-29149 HIGH
Uncontrolled Search Path Element (CWE-427)
8.4
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Recon
    Clone malicious repository
  2. Delivery
    Navigate to repo directory
  3. Exploit
    Run OpenClaw command
  4. Install
    Trigger provider setup resolution
  5. C2
    Load attacker's setup-api.js from cwd
  6. Execute
    Execute arbitrary JavaScript
  7. Impact
    Compromise user account

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path element control
Exploitation Conditions

Exploitation requires the attacker to place a malicious extensions/<plugin>/setup-api.js file in a repository and convince a user to run OpenClaw commands from that specific directory. The user must execute OpenClaw with the attacker-controlled directory as the current working directory (process.cwd()), which occurs naturally when developers clone repositories and run tools from within the project root. No special OpenClaw configuration, non-default settings, or specific plugin installations are required-the vulnerability exists in the core plugin setup resolver used during ordinary provider/model metadata resolution. The attack is limited by user interaction (UI:R in CVSS) and local access scope-remote exploitation is not directly possible, but the attack can be delivered remotely via repository distribution (git clone, npm install, tarball download). Successful exploitation does not require the victim to have administrative privileges or special permissions; any user account running OpenClaw is vulnerable.

Impact

CVSS 7.8 (High) accurately reflects the attack requirements: local access vector (AV:L), low complexity (AC:L), no privileges required (PR:N), user interaction required (UI:R), with high confidentiality, integrity, and availability impact. Real-world risk is moderate because exploitation requires the user to clone/download a malicious repository and manually execute OpenClaw commands from that directory-this attack pattern resembles supply-chain or social engineering tactics rather than mass exploitation. No EPSS score, KEV status, or POC availability data provided, but the GitHub advisory and commit evidence confirm the vulnerability is real and fixed. The attack surface is limited to developers or users who run OpenClaw against untrusted codebases, making this primarily a supply-chain or insider risk rather than internet-facing. The user interaction barrier significantly reduces automated exploitation potential, though the lack of privilege requirements means any user account can be compromised if tricked. Security teams should prioritize this for environments where users routinely run OpenClaw against third-party or unvetted repositories (CI/CD pipelines, open-source contribution workflows).

Exploit ScenarioDerived

An attacker publishes a seemingly legitimate open-source project to GitHub containing a hidden extensions/some-plugin/setup-api.js file with malicious JavaScript (e.g., credential exfiltration, reverse shell, data destruction). A developer clones this repository, navigates into the project directory, and runs routine OpenClaw commands like provider status checks or model inspection. OpenClaw's plugin resolver loads the attacker's setup-api.js from process.cwd(), executing the malicious code under the developer's user account with full access to environment variables, filesystem, and network. The attacker gains code execution without requiring any authentication or special privileges beyond convincing the user to run OpenClaw from the malicious directory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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 – May 11, 2026

Arbitrary code execution in OpenClaw via CWD-based setup-api.js injection allows local attackers to run malicious JavaScript when users execute OpenClaw commands from attacker-controlled directories. Affects all OpenClaw versions before 2026.4.23. Vendor-released patch available in version 2026.4.23. Exploitation requires user interaction (running OpenClaw commands from a malicious repository) but no authentication. CVSS 7.8 reflects local attack vector with user interaction requirement, mitigating remote exploitation risk.

RemediationAI

Upgrade to OpenClaw version 2026.4.23 or later, which removes process.cwd() from the setup-api search path and restricts module resolution to the canonical package root. The fix is available via npm (npm install openclaw@2026.4.23 or npm update openclaw) and documented in GitHub commit 993781e6e6eaf50f033cfc3e3bf4f47059740707 (https://github.com/openclaw/openclaw/commit/993781e6e6eaf50f033cfc3e3bf4f47059740707). If immediate patching is not possible, implement compensating controls: restrict OpenClaw execution to trusted directories only, use read-only mounts or filesystem permissions to prevent users from writing to directories where OpenClaw will be executed, and run OpenClaw in isolated containers or VMs when processing untrusted repositories. These workarounds reduce attack surface but introduce operational overhead (restricted developer workflows, container management complexity) and do not fully eliminate risk if users can still influence the working directory. Full vendor advisory at https://github.com/openclaw/openclaw/security/advisories/GHSA-r39h-4c2p-3jxp and VulnCheck analysis at https://www.vulncheck.com/advisories/openclaw-arbitrary-code-execution-via-setup-api-js-in-current-working-directory.

Affected VersionsENISA

OpenClaw 0 <2026.4.23

Affected Packages

npm openclaw fix: 2026.4.23

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

This vulnerability stems from CWE-427 (Uncontrolled Search Path Element), where OpenClaw's plugin setup resolver incorrectly trusted process.cwd() as a search path for bundled setup-api.js modules during provider setup metadata resolution. When resolving provider configuration, the application would search for extensions/<plugin>/setup-api.js in multiple locations including the current working directory. Node.js module resolution combined with process.cwd() creates a DLL-hijacking-style attack where an attacker-controlled file takes precedence over legitimate bundled modules. The fix removes process.cwd() from the repoRootCandidates array, restricting setup-api resolution to only the canonical package root (CURRENT_MODULE_PATH ancestor), and adds regression testing to verify workspace-local setup-api.js files are ignored. This is a classic untrusted search path vulnerability affecting JavaScript/Node.js applications that dynamically load code based on runtime working directory.

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 8.4 HIGH
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck) · only source for this CVE.

CVSS VectorVendor: VulnCheck

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

Lifecycle Timeline

2
CVSS changed
May 11, 2026 - 18:22 NVD
7.8 (HIGH) 8.4 (HIGH)
CVE Published
May 11, 2026 - 16:46 nvd
HIGH 7.8

DescriptionCVE.org

OpenClaw before 2026.4.23 contains an arbitrary code execution vulnerability in the bundled plugin setup resolver that loads setup-api.js from process.cwd() during provider setup metadata resolution. Attackers can execute arbitrary JavaScript under the current user account by placing a malicious extensions/<plugin>/setup-api.js file in a repository and convincing a user to run OpenClaw commands from that directory.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 npm packages depend on openclaw (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 2026.4.23.

Executive ViewAI

Why It Matters

OpenClaw versions before 2026.4.23 contain an arbitrary code execution vulnerability allowing attackers to inject malicious JavaScript that executes when users run OpenClaw commands from attacker-controlled directories. This impacts organizations where developers work with untrusted code repositories, potentially compromising developer machines and the software supply chain. Immediate patching is required to prevent exploitation through social engineering or compromised project repositories.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not possible, restrict OpenClaw execution to verified/trusted project directories only and prohibit developers from running OpenClaw commands from external or untrusted repositories until version 2026.4.23 is deployed.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA 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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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