Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local authenticated access
-
DeliveryConfigure or exploit existing auto-allow sandbox
-
ExploitInject path traversal sequences in bash commands
-
ExecutionBypass checkPathConstraints validation
-
PersistAccess files outside sandbox boundaries
-
ImpactExfiltrate sensitive data or credentials
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires three specific conditions: (1) OpenClaude version prior to 0.5.1 installed on the target system. (2) Sandbox auto-allow feature must be explicitly enabled in the configuration. (3) No explicit deny rules configured for the target paths being traversed. Local authenticated access (PR:L) is required - the attacker must be able to execute or influence OpenClaude commands on the system, either as a legitimate user, through compromised AI model responses, or via malicious prompts. Exploitation is limited to systems where OpenClaude is actively deployed with this specific sandbox configuration, not default installations with standard security settings. |
| Impact | Real-world risk is moderate and highly context-dependent. CVSS 8.4 reflects the severity of sandbox escape with high confidentiality and integrity impact, but multiple factors reduce practical exploitability: (1) Requires local authenticated access (PR:L) to a system running OpenClaude - not remotely exploitable. (2) Attacker must have OpenClaude installed and the specific sandbox auto-allow configuration enabled without deny rules. (3) EPSS 3rd percentile indicates security researchers assess exploitation probability as very low. (4) No KEV listing or public exploit code identified at time of analysis. The changed scope (S:C) is the primary concern - this enables breaking out of intended containment, potentially accessing credentials, source code, or system files. Priority depends entirely on deployment context: High priority if OpenClaude agents run with elevated privileges or access sensitive codebases; Low priority if used in isolated development environments with limited data exposure. The primary risk is not external attackers but rather compromised or malicious AI agent actions exceeding intended boundaries. |
| Exploit ScenarioDerived | A developer runs OpenClaude with sandbox auto-allow enabled in a repository containing proprietary source code and cloud credentials. A malicious or compromised AI model prompt causes the agent to execute bash commands containing path traversal sequences (e.g., 'cat ../../../../../home/developer/.aws/credentials'). Due to the logic flaw, these commands bypass directory restrictions and the agent exfiltrates AWS credentials or sensitive intellectual property that should have been isolated from the sandbox. The local attack vector requires the attacker to already have the ability to influence OpenClaude's operation (either through compromised prompts, malicious model responses, or direct local access). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Apr 21, 2026
Path traversal in OpenClaude CLI versions before 0.5.1 allows local authenticated users to bypass sandbox directory restrictions and access arbitrary filesystem paths. A logic flaw in the bash permission handler causes path constraint checks to be skipped when sandbox auto-allow is enabled without explicit deny rules, permitting traversal sequences like '../../../etc/passwd' to escape containment boundaries. EPSS score of 0.01% indicates low probability of widespread exploitation, and no active exploitation has been reported.
Earlier versions of this analysis (1)
Path traversal in OpenClaude CLI 0.5.0 and earlier allows authenticated local users to read and modify arbitrary files outside intended sandbox directories when auto-allow mode is enabled. The vulnerability stems from a logic flaw in permission checking that skips path constraint validation, enabling directory traversal sequences like '../../../etc/passwd' to bypass restrictions entirely. Exploitation requires local access with low privileges and the sandbox auto-allow feature to be active. No active exploitation confirmed at time of analysis; public exploit code exists via the GitHub security advisory and commit demonstrating the flaw.
RemediationAI
Upgrade to OpenClaude version 0.5.1 or later, which contains a fix for the permission validation logic flaw (commit 7002cb302b78ea2a19da3f26226de24e2903fa1d at https://github.com/Gitlawb/openclaude/commit/7002cb302b78ea2a19da3f26226de24e2903fa1d). If immediate upgrade is not feasible, implement compensating controls: (1) Disable the sandbox auto-allow feature and define explicit allow rules for required paths only - this forces path constraint validation on all operations but requires manual configuration overhead. (2) Configure explicit deny rules for sensitive filesystem locations (/etc, /root, credential stores) to trigger path checks even with auto-allow enabled - this adds defense-in-depth but does not address the root logic flaw. (3) Run OpenClaude processes under dedicated low-privilege service accounts with filesystem ACLs restricting access to only required directories - this limits blast radius but adds operational complexity. Note that workarounds do not eliminate the vulnerability and should be considered temporary until patching.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenClaude is a command-line coding agent that integrates with cloud and local AI model providers. The vulnerability exists in the BashTool permission validation logic (bashToolHasPermission function in src/tools/BashTool/bashPermissions.ts). This is a classic CWE-22 path traversal flaw caused by improper control flow: when the sandbox auto-allow feature is active and no explicit deny rules are configured, the function short-circuits with an allow decision before invoking checkPathConstraints() - the filter responsible for validating path boundaries. This allows relative path sequences (../) to traverse outside intended directory constraints, potentially accessing sensitive system files or data that should be isolated from the AI agent's execution context. The local attack vector (AV:L) indicates exploitation requires existing access to the system running OpenClaude, while the changed scope (S:C) reflects that the vulnerability enables escaping the sandboxed execution environment.
Know when Openclaude 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
AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
Primary rating from Vendor (github) · only source for this CVE.
CVSS VectorVendor: github
Lifecycle Timeline
3DescriptionCVE.org
OpenClaude is an open-source coding-agent command line interface for cloud and local model providers. Versions prior to 0.5.1 have a logic flaw in bashToolHasPermission() inside src/tools/BashTool/bashPermissions.ts. When the sandbox auto-allow feature is active and no explicit deny rule is configured, the function returns an allow result immediately - before the path constraint filter (checkPathConstraints) is ever evaluated. This allows commands containing path traversal sequences (e.g., ../../../../../etc/passwd) to bypass directory restrictions entirely. Version 0.5.1 contains a patch for the issue.
Executive ViewAI
OpenClaude CLI versions 0.5.0 and earlier contain a path traversal vulnerability that allows authenticated local users with low privileges to read and modify arbitrary files on the system when auto-allow mode is enabled, potentially exposing sensitive data and enabling unauthorized system modifications. Organizations using OpenClaude CLI in shared or multi-user environments face immediate risk of data exposure and system compromise. This vulnerability requires immediate action as no vendor patch is currently available.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable auto-allow mode entirely and require explicit user approval for all operations; (2) Implement strict file system ACLs restricting OpenClaude CLI process to a single locked-down directory tree; (3) Run OpenClaude CLI in containerized or VM-isolated environments with no access to sensitive file paths; (4) Restrict OpenClaude CLI usage to dedicated, non-production accounts with minimal system privileges; (5) Monitor file access and modification logs for suspicious path traversal patterns.
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.
EUVD-2026-23988
GHSA-m6rx-7pvw-2f73
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB