CVE-2026-27522: OpenClaw: path traversal enables arbitrary file read via media actions
MEDIUMOpenClaw versions before 2026.2.24 contain a path traversal flaw (CWE-22) in the sendAttachment and setGroupIcon message handlers that allows any authenticated user to read arbitrary files on the host by supplying absolute paths when sandboxRoot is not configured. In AI agent deployments, the runtime process typically has access to API credentials, .env files, model configs, and training artifacts — precisely the data an attacker would target. Despite medium CVSS (6.5), the attack profile is severe: network-reachable, low-privilege, no user interaction required, and EPSS places it in the top 71% of CVEs by exploitation likelihood. Upgrade to 2026.2.24 immediately; if patching is blocked, explicitly set sandboxRoot in configuration to enforce filesystem sandboxing and audit runtime user permissions to least-privilege.
What is the risk?
Functionally higher risk than the medium CVSS suggests. The combination of network accessibility (AV:N), low privilege requirement (PR:L), no user interaction (UI:N), and high confidentiality impact (C:H) means any authenticated user can silently exfiltrate files. AI agent runtimes are particularly exposed because they routinely store LLM provider API keys, authentication tokens, and model configuration in the filesystem. With 396 CVEs in the same package, the security history of OpenClaw compounds risk for teams relying on it as infrastructure.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| OpenClaw | pip | — | No patch |
Do you use OpenClaw? You're affected.
How severe is it?
What is the attack surface?
What should I do?
5 steps-
Patch: upgrade openclaw pip package to 2026.2.24 or later — the commit 270ab03e379f9653e15f7033c9830399b66b7e51 closes the bypass.
-
Workaround (if patching blocked): explicitly configure sandboxRoot in all OpenClaw deployments to a restricted media directory; do not leave it unset.
-
Runtime hardening: run the OpenClaw process under a dedicated low-privilege user with read access only to explicitly required paths — no API key directories, no ~/.ssh, no .env files.
-
Detection: audit logs for sendAttachment or setGroupIcon events containing absolute paths (starting with '/') or path traversal sequences ('..') — these should not appear in normal usage.
-
Rotate any credentials stored in directories accessible to the OpenClaw runtime user as a precautionary measure.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-27522?
OpenClaw versions before 2026.2.24 contain a path traversal flaw (CWE-22) in the sendAttachment and setGroupIcon message handlers that allows any authenticated user to read arbitrary files on the host by supplying absolute paths when sandboxRoot is not configured. In AI agent deployments, the runtime process typically has access to API credentials, .env files, model configs, and training artifacts — precisely the data an attacker would target. Despite medium CVSS (6.5), the attack profile is severe: network-reachable, low-privilege, no user interaction required, and EPSS places it in the top 71% of CVEs by exploitation likelihood. Upgrade to 2026.2.24 immediately; if patching is blocked, explicitly set sandboxRoot in configuration to enforce filesystem sandboxing and audit runtime user permissions to least-privilege.
Is CVE-2026-27522 actively exploited?
No confirmed active exploitation of CVE-2026-27522 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-27522?
1. Patch: upgrade openclaw pip package to 2026.2.24 or later — the commit 270ab03e379f9653e15f7033c9830399b66b7e51 closes the bypass. 2. Workaround (if patching blocked): explicitly configure sandboxRoot in all OpenClaw deployments to a restricted media directory; do not leave it unset. 3. Runtime hardening: run the OpenClaw process under a dedicated low-privilege user with read access only to explicitly required paths — no API key directories, no ~/.ssh, no .env files. 4. Detection: audit logs for sendAttachment or setGroupIcon events containing absolute paths (starting with '/') or path traversal sequences ('..') — these should not appear in normal usage. 5. Rotate any credentials stored in directories accessible to the OpenClaw runtime user as a precautionary measure.
What systems are affected by CVE-2026-27522?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, AI agent deployments, local filesystem-integrated AI pipelines, multi-user AI assistant platforms.
What is the CVSS score for CVE-2026-27522?
CVE-2026-27522 has a CVSS v3.1 base score of 6.5 (MEDIUM). The EPSS exploitation probability is 0.37%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0037 Data from Local System AML.T0049 Exploit Public-Facing Application AML.T0053 AI Agent Tool Invocation AML.T0083 Credentials from AI Agent Configuration Compliance Controls Affected
What are the technical details?
Original Advisory
OpenClaw versions prior to 2026.2.24 contain a local media root bypass vulnerability in sendAttachment and setGroupIcon message actions when sandboxRoot is unset. Attackers can hydrate media from local absolute paths to read arbitrary host files accessible by the runtime user.
Exploitation Scenario
An attacker with a standard (low-privilege) OpenClaw account sends a crafted sendAttachment message action where the media path is set to an absolute filesystem path such as /opt/app/.env or /home/appuser/.config/openclaw/credentials.json. Because sandboxRoot is unset, OpenClaw's media hydration subsystem resolves the path without sandbox restriction and returns the file contents as attachment data. In an AI agent deployment context, the attacker iterates over predictable paths — LLM provider API key files, Kubernetes secrets mounted at /var/run/secrets/, or model serving configuration — to harvest credentials enabling lateral movement into cloud AI services or downstream systems. No exploit code is required; the attack is reproducible with standard HTTP tooling against the message API endpoint.
Weaknesses (CWE)
CWE-22 — Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'): The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
- [Implementation] Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue." Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylis
- [Architecture and Design] For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N References
Timeline
Related Vulnerabilities
CVE-2026-33579 9.9 OpenClaw: scope bypass escalates low-priv to admin
Same package: openclaw CVE-2026-32922 9.9 OpenClaw: privilege escalation to RCE via token scope bypass
Same package: openclaw CVE-2026-32038 9.8 OpenClaw: sandbox bypass enables container lateral movement
Same package: openclaw CVE-2026-53838 9.8 OpenClaw: approval scope bypass via reconnection state
Same package: openclaw CVE-2026-30741 9.8 OpenClaw: RCE via request-side prompt injection
Same package: openclaw