OpenClaw
CVE-2026-41366
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain valid OpenClaw credentials
-
DeliveryInvoke model inference API
-
ExploitCraft malicious directory path with traversal sequences
-
InstallappendLocalMediaParentRoots function validates insufficiently
-
C2Whitelist accepts parent directory outside sandbox
-
ExecuteRead arbitrary files accessible to OpenClaw process
-
ImpactExfiltrate credentials and sensitive data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V13 - Configuration Permission assignment review
|
| Exploitation Conditions | Exploitation requires an authenticated user or model with access to invoke the appendLocalMediaParentRoots function. The vulnerability is triggered when this function processes directory paths without proper validation of parent directory references, allowing path traversal payloads to escape the media root directory. Default OpenClaw installations that expose the model inference API over the network and accept untrusted model-generated file paths are vulnerable. The exploit does NOT require local system access or elevated privileges on the host, only valid credentials for the OpenClaw service. However, exploitation is limited by the file permissions of the OpenClaw process - files readable only by other users or processes cannot be accessed. |
| Impact | CVSS 6.0 with AV:N/AC:L/PR:L vector indicates network-accessible exploitation requiring low complexity and prior user authentication. However, the description explicitly states 'model-initiated arbitrary host file read,' suggesting the vulnerability originates from a compromised or adversarially-controlled model rather than direct attacker input, which may limit real-world exploitation scope despite the network vector. EPSS score and KEV status are not provided, so exploitation probability cannot be independently assessed. The AV:N rating appears inconsistent with a 'local roots self-whitelisting' vulnerability - this suggests either the vulnerability can be triggered remotely through the model interface or the CVSS vector may require vendor clarification. The impact is limited to information disclosure (VC:H for confidentiality) with no integrity or availability impact. Real-world risk depends on whether the model is under attacker control and what sensitive files are accessible to the OpenClaw process. If OpenClaw runs with elevated privileges or can access system credentials, risk is elevated; if confined to user-writable directories, risk is lower. |
| Exploit ScenarioDerived | An attacker with valid OpenClaw credentials (or compromised credentials) crafts a model inference request that triggers the vulnerable appendLocalMediaParentRoots function with malicious directory path traversal sequences (e.g., '../../../etc/passwd'). The insufficient validation allows the model or application layer to add parent directories outside the intended media sandbox to the whitelist, enabling subsequent file read operations to exfiltrate sensitive files such as system configuration, private keys, or application credentials. If the attacker operates the model directly, they can systematically enumerate and extract all files accessible to the OpenClaw process. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 28, 2026
OpenClaw before version 2026.3.31 allows authenticated attackers to read arbitrary host files through improper validation in the appendLocalMediaParentRoots function, enabling exfiltration of credentials and sensitive data. The vulnerability permits model-initiated file access by exploiting a self-whitelisting mechanism that fails to properly validate media parent directory paths. Authentication is required, but the flaw affects confidentiality with a CVSS score of 6.0.
RemediationAI
Upgrade to OpenClaw version 2026.3.31 or later, which includes fixes for the appendLocalMediaParentRoots validation logic. The upstream fix is available at https://github.com/openclaw/openclaw/commit/1ca4261d7e055d0be141ed79ebb1365d0fbc7364. As an interim compensating control, restrict the file system permissions of the OpenClaw process to exclude access to sensitive directories (e.g., /etc, /root, credential stores) using OS-level file access controls (SELinux, AppArmor, or Windows file ACLs). Additionally, disable or restrict the model inference feature if it is not required, and isolate OpenClaw in a container or sandbox with minimal file system permissions to limit the scope of readable files. These controls reduce exposure but do not eliminate the vulnerability; patching is the primary remediation.
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's appendLocalMediaParentRoots function implements media library path management but fails to properly validate parent directory references before adding them to the whitelist. The root cause (CWE-732: Incorrect Permission Assignment for Critical Resource) indicates that the application grants excessive permissions or fails to enforce proper access controls on file system operations. Attackers can manipulate directory path validation to escape intended sandbox boundaries and access files outside the designated media directory. This is a local file disclosure vulnerability at the application layer, where the model or application layer can be induced to read arbitrary files through crafted path inputs.
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:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Primary rating from Vendor (vulncheck) · only source for this CVE.
CVSS VectorVendor: vulncheck
DescriptionCVE.org
OpenClaw before 2026.3.31 contains a local roots self-whitelisting vulnerability in appendLocalMediaParentRoots that allows model-initiated arbitrary host file read. Attackers can exploit improper media parent directory validation to exfiltrate credentials and access sensitive files.
Blast Radius
ecosystem impact- 1 npm packages depend on openclaw (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 2026.3.31.
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.
Affected Products (CPE)CVE.org
Related Vulnerabilities in OpenClaw Multiple Security Flaws
View all 11Auth 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
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
OpenClaw versions prior to 2026.2.22 contain a resource exhaustion vulnerability where the application fails to consiste
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB