Skip to main content

OpenClaw EUVDEUVD-2026-25344

| CVE-2026-41360 MEDIUM
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-04-23 VulnCheck GHSA-v3p7-858r-pr8m
5.4
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Gain local filesystem write access to script path
  2. Delivery
    Identify operator using pnpm dlx with local script via OpenClaw
  3. Exploit
    Wait for operator to initiate approval flow
  4. Execution
    Replace approved local script with malicious payload
  5. Impact
    OpenClaw executes modified script under still-valid approval

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
Exploitation Conditions

Exploitation requires all of the following: (1) the attacker has local write access to the filesystem path of the approved script - remote or unauthenticated exploitation is not possible; (2) the target environment runs OpenClaw version 2026.4.1 or earlier and uses pnpm dlx with a local script operand (e.g., ./run.ts) through OpenClaw's node-host approval path - the pnpm exec flow was not affected; (3) an operator must initiate and complete an approval for the targeted pnpm dlx invocation (UI:P passive interaction required - exploitation cannot occur without this step); (4) the attacker must successfully time the script replacement into the window between operator approval and script execution (AC:H). Limiting factors: requires local filesystem co-presence, a timing race, and operator interaction - none of which can be forced or automated remotely. The vulnerability does not apply to pnpm exec flows or to remote-package (non-local-script) dlx invocations.

Impact

The CVSS 4.0 score of 5.4 accurately reflects significant real-world constraints: local attack vector (AV:L), high complexity (AC:H requiring precise timing), low privilege (PR:L), and passive user interaction (UI:P - an operator must initiate and complete the approval flow). Despite SSVC rating technical impact as total and C/I/A all set to High on the vulnerable system, actual exploitability is tightly bounded: an attacker must share local filesystem write access to the specific script path, successfully time a file replacement into a narrow execution window, and depend on operator behavior. EPSS at 0.01% (1st percentile) and SSVC exploitation status of 'none' confirm no observed exploitation. SSVC also rates this as not automatable. The gap between the total theoretical impact and constrained exploitability is the defining characteristic of this vulnerability - it is a meaningful design flaw in an approval-integrity model but not a practically dangerous remote threat.

Exploit ScenarioDerived

A low-privileged local attacker shares filesystem access with an operator running OpenClaw. The operator reviews and approves a pnpm dlx tsx ./build.ts invocation, inspecting the benign build.ts content. In the narrow window between approval and execution, the attacker overwrites build.ts with a malicious payload; because the pnpm dlx approval plan did not bind the script operand, OpenClaw executes the replaced contents under the still-valid approval, achieving arbitrary code execution with the operator's privileges. No public exploit code has been identified at time of analysis.

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

Approval integrity bypass in OpenClaw's pnpm dlx command-planning path (all versions up to 2026.4.1) allows a low-privileged local attacker to replace an approved local script between the approval decision and actual execution, running arbitrary code under a still-valid approval plan. The root cause is a TOCTOU flaw (CWE-367): unlike the parallel pnpm exec flow, pnpm dlx did not bind local script operands into the approval plan's mutable-file tracking, leaving the script file unmonitored after approval. No active exploitation is confirmed (EPSS 0.01%, SSVC exploitation: none), though SSVC rates technical impact as total given full C/I/A exposure on the vulnerable system.

RemediationAI

Upgrade OpenClaw to version 2026.4.2 or later, which binds pnpm dlx local script operands through the approval planner's mutable-script tracking path before any approval is granted, closing the TOCTOU window. The fix is documented in GitHub Security Advisory GHSA-w6wx-jq6j-6mcj (https://github.com/openclaw/openclaw/security/advisories/GHSA-w6wx-jq6j-6mcj) and implemented in commit 176c059b05357df1bc09d4328a2380670859eeff (https://github.com/openclaw/openclaw/commit/176c059b05357df1bc09d4328a2380670859eeff). If immediate upgrade is not possible, restrict local filesystem write access for all accounts that share the environment with OpenClaw operators, reducing an attacker's ability to modify script files between approval and execution - though this imposes operational constraints on shared-user environments. As an additional workaround, avoid invoking local-path scripts (e.g., ./run.ts) through OpenClaw's pnpm dlx approval flow until patched; this eliminates the vulnerable code path at the cost of restricting scripted workflows that rely on this invocation pattern.

Affected VersionsENISA

OpenClaw 0 <2026.4.2

Affected Packages

npm openclaw fix: 2026.4.2

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 (npm package, CPE: cpe:2.3:a:openclaw:openclaw) provides an AI coding-agent harness that integrates with pnpm's dlx and exec subcommands via a node-host command-planning and approval pipeline. CWE-367 (Time-of-check Time-of-use race condition) describes the root cause precisely: during approval planning, pnpm dlx invocations did not resolve and bind local script operands (e.g., ./run.ts) into the plan's mutableFileOperand field, while the pnpm exec path correctly tracked these via revalidateApprovedMutableFileOperand. This asymmetry left a window between operator approval and script execution in which a co-located attacker could overwrite the script file without invalidating the approval. The fix commit 176c059b05357df1bc09d4328a2380670859eeff routes pnpm dlx through the same mutable-script binding logic used by pnpm exec, closing the TOCTOU window.

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.4 MEDIUM
CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 6.7 MEDIUM

Local filesystem write access and script-replacement timing require AV:L and AC:H; some system presence needed (PR:L); operator must complete approval (UI:R); no scope change (S:U).

3.1 AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/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
Passive
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

3
CVSS changed
Apr 23, 2026 - 22:28 NVD
6.7 (MEDIUM) 5.4 (MEDIUM)
Patch released
Apr 23, 2026 - 22:15 nvd
Patch available
CVE Published
Apr 23, 2026 - 21:58 nvd
MEDIUM 5.4

DescriptionCVE.org

OpenClaw before 2026.4.2 contains an approval integrity vulnerability in pnpm dlx that fails to bind local script operands consistently with pnpm exec flows. Attackers can replace approved local scripts before execution without invalidating the approval plan, allowing execution of modified script contents.

Blast Radius

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

Ecosystem-wide dependent count for version 2026.4.2.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
Prevalence
Low
niche AI coding agent npm tool, limited enterprise footprint
Data Quality
7 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
Total

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
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