CVE-2026-35570 OpenClaude has Sandbox Bypass via Early-Exit Logic Flaw that Allows Path Traversal

High 8.4 Published Updated

Attackers can bypass sandbox restrictions to read arbitrary files via path traversal when auto-allow is enabled without deny rules.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-35570?

CVE-2026-35570 is a high-severity path traversal vulnerability in Gitlawb openclaude, published on 20 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-284, CWE-22

Which versions are affected by CVE-2026-35570?

2 open source packages ship an affected version, including @gitlawb/openclaude. It affects 1 product.

PackageAffectedFixed in
@gitlawb/openclaude npmAll versions0.5.1
@gitlawb/openclaude npmAll versions0.5.1

Products include Gitlawb Openclaude.

How do I fix CVE-2026-35570?

Upgrade @gitlawb/openclaude to 0.5.1 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-35570 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-35570 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-m6rx-7pvw-2f73.

Is CVE-2026-35570 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free