CVE-2026-35570: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Gitlawb openclaude
OpenClaude versions prior to 0. 5. 1 contain a path traversal vulnerability in the bashToolHasPermission() function. When the sandbox auto-allow feature is enabled without explicit deny rules, path constraints are bypassed, allowing unauthorized access to restricted directories via crafted path traversal sequences. This vulnerability is patched in version 0. 5. 1.
AI Analysis
Technical Summary
The vulnerability (CVE-2026-35570) affects OpenClaude, an open-source coding-agent CLI, due to a logic flaw in bashToolHasPermission() within src/tools/BashTool/bashPermissions.ts. Specifically, if the sandbox auto-allow feature is active and no deny rules are set, the function prematurely returns an allow result before evaluating path constraints. This enables attackers to use path traversal sequences (e.g., ../../../../../etc/passwd) to bypass directory restrictions. The issue is fixed in version 0.5.1.
Potential Impact
Successful exploitation allows an attacker with limited privileges to bypass directory restrictions and access sensitive files outside the intended sandbox. The CVSS score of 8.4 (high severity) reflects the potential for high confidentiality and integrity impact without requiring user interaction. Availability is not affected.
Mitigation Recommendations
Upgrade OpenClaude to version 0.5.1 or later, where the vulnerability is patched. No other official remediation or temporary fixes are documented. Patch status is not explicitly stated but the vendor has released version 0.5.1 containing the fix, so updating to this version is the recommended action.
CVE-2026-35570: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Gitlawb openclaude
Description
OpenClaude versions prior to 0. 5. 1 contain a path traversal vulnerability in the bashToolHasPermission() function. When the sandbox auto-allow feature is enabled without explicit deny rules, path constraints are bypassed, allowing unauthorized access to restricted directories via crafted path traversal sequences. This vulnerability is patched in version 0. 5. 1.
CVSS v3.1
Score 8.4high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability (CVE-2026-35570) affects OpenClaude, an open-source coding-agent CLI, due to a logic flaw in bashToolHasPermission() within src/tools/BashTool/bashPermissions.ts. Specifically, if the sandbox auto-allow feature is active and no deny rules are set, the function prematurely returns an allow result before evaluating path constraints. This enables attackers to use path traversal sequences (e.g., ../../../../../etc/passwd) to bypass directory restrictions. The issue is fixed in version 0.5.1.
Potential Impact
Successful exploitation allows an attacker with limited privileges to bypass directory restrictions and access sensitive files outside the intended sandbox. The CVSS score of 8.4 (high severity) reflects the potential for high confidentiality and integrity impact without requiring user interaction. Availability is not affected.
Mitigation Recommendations
Upgrade OpenClaude to version 0.5.1 or later, where the vulnerability is patched. No other official remediation or temporary fixes are documented. Patch status is not explicitly stated but the vendor has released version 0.5.1 containing the fix, so updating to this version is the recommended action.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-03T20:09:02.826Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e6b73b19fe3cd2cd3f2d17
Added to database: 4/20/2026, 11:31:07 PM
Last enriched: 4/28/2026, 6:02:51 AM
Last updated: 6/4/2026, 8:34:48 PM
Views: 96
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.