{"id":"CVE-2026-35570","published":"2026-04-20T23:24:08Z","modified":"2026-04-21T19:49:30Z","title":"OpenClaude has Sandbox Bypass via Early-Exit Logic Flaw that Allows Path Traversal","vendor":"Gitlawb","product":"openclaude","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00236,"percentile":0.14908,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-284","name":"Improper Access Control"}],"references":[{"url":"https://github.com/Gitlawb/openclaude/security/advisories/GHSA-m6rx-7pvw-2f73","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Gitlawb/openclaude/commit/7002cb302b78ea2a19da3f26226de24e2903fa1d","tags":["x_refsource_MISC"]}],"priority":{"score":13.9,"factors":[{"name":"EPSS percentile","points":2.98},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.88}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-04-04","earliestUrl":"https://github.com/Rickidevs/CVE-2026-35570","repos":[{"name":"Rickidevs/CVE-2026-35570","url":"https://github.com/Rickidevs/CVE-2026-35570","stars":1,"created":"2026-04-04"}]},"first":{"date":"2026-04-04","source":"PoC-in-GitHub","url":"https://github.com/Rickidevs/CVE-2026-35570"},"provenance":"source"},"vendorSlug":"gitlawb","affectedVersions":[{"vendor":"Gitlawb","product":"openclaude","versions":["< 0.5.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-04-21T16:01:46.877935Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@gitlawb/openclaude","vulnerableRanges":["<0.5.1"],"patched":["0.5.1"],"from":["GHSA-m6rx-7pvw-2f73"],"provenance":"source"}],"summary":{"text":"OpenClaude, an open-source coding-agent command line interface from Gitlawb, has a logic flaw in the bashToolHasPermission() function in src/tools/BashTool/bashPermissions.ts, affecting versions prior to 0.5.1. When sandbox auto-allow is active and no explicit deny rule is configured, the function returns allow before the path constraint check runs, letting commands with path traversal sequences such as ../../../../../etc/passwd escape directory restrictions; an attacker with local access and low privileges can exploit this without user interaction, though the attack complexity is low.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:06:47Z"},"euvd":{"id":"EUVD-2026-23988","exploited":false,"provenance":"source"}}