CVE-2026-35658: OpenClaw: Image Tool `tools.fs.workspaceOnly` Bypass via Sandbox Bridge Mounts
The OpenClaw image tool ignored tools.fs.workspaceOnly when it resolved paths through sandbox bridge mounts. It could read image files from mounted directories outside the workspace that the other file tools refuse. Fixed in openclaw 2026.3.2.
Published Mar 26, 2026 · Updated Apr 10, 2026 · Analysis Oct 31, 2026
What an attacker can do
tools.fs.workspaceOnly confines the file tools to the agent workspace. The image tool did not receive that policy. In src/agents/openclaw-tools.ts, createImageTool was built without fsPolicy, so path resolution in the image tool and in sandbox-media-paths.ts could follow sandbox bridge mounts to directories outside the workspace (CWE-668, resource exposed to the wrong sphere).
The attacker needs to influence what the agent loads, for example through a prompt-injected instruction or a low-privilege session, and the host must run the sandbox with extra mounted directories. They ask the image tool to open a path under a mount. The tool reads the file and passes it to a vision model, so contents of image files, or text visible in images, can leak into the agent's output. The CVSS vectors score high confidentiality and no integrity or availability impact.
Teams that rely on workspaceOnly to keep agents away from mounted host data, such as shared volumes or credentials directories, are the ones affected.
Who is affected
Affected: the openclaw npm package before 2026.3.2, with tools.fs.workspaceOnly enabled and sandbox bridge mounts that point outside the workspace. Check the version and the setting:
npm ls openclaw
openclaw --versionopenclaw
- Ecosystem
- npm
- Affected
- < 2026.3.2
- Fixed in
- 2026.3.2
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.2 or later. The advisory says the complete fix is present in 2026.3.2, 2026.3.23 and 2026.3.23-2.
npm install -g openclaw@latestFix commits dd9d9c1c609dcb4579f9e57bd7b5c879d0146b53 and 14baadda2c456f3cf749f1f97e8678746a34a7f4 pass fsPolicy into createImageTool. When workspaceOnly is on, image-tool.ts, media-tool-shared.ts and sandbox-media-paths.ts limit local roots and bridge resolution to the workspace. The advisory names no workaround; review which host directories you mount into the sandbox.
How to tell if you were hit
Review agent tool-call records for image tool calls whose path is outside the workspace, especially under sandbox bridge mount points. Check which host directories are mounted into the sandbox and whether they hold sensitive files. The advisory gives no log signature. Beam, if it runs next to the agent, records file access and tool calls, which can show such reads.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
The image tool did not fully honor the tools.fs.workspaceOnly filesystem boundary. In affected releases, image-path resolution could still traverse sandbox bridge mounts outside the workspace and read files from mounted directories that the other file tools would reject.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected:
< 2026.3.2 - Fixed:
>= 2026.3.2 - Latest released tags checked:
v2026.3.23(ccfeecb6887cd97937e33a71877ad512741e82b2) andv2026.3.23-2(630f1479c44f78484dfa21bb407cbe6f171dac87) - Latest published npm version checked:
2026.3.23-2
Fix Commit(s)
dd9d9c1c609dcb4579f9e57bd7b5c879d0146b5314baadda2c456f3cf749f1f97e8678746a34a7f4
Release Status
The complete fix shipped in v2026.3.2 and remains present in v2026.3.23 and v2026.3.23-2.
Code-Level Confirmation
src/agents/openclaw-tools.tsnow passesfsPolicyintocreateImageTool, so the image tool receives the same workspace-only policy input as the other filesystem tools.src/agents/tools/image-tool.ts,src/agents/tools/media-tool-shared.ts, andsrc/agents/sandbox-media-paths.tsnow restrict local roots and sandbox-bridge resolution to the workspace whentools.fs.workspaceOnlyis enabled.
OpenClaw thanks @YLChen-007 for reporting.
Credited to YLChen-007.
Questions
- Is OpenClaw 2026.3.1 affected by CVE-2026-35658?
Yes. Every version below 2026.3.2 is affected. This is an earlier fix point than most March 2026 OpenClaw advisories, which say 2026.3.22 or 2026.3.23.
- Does it matter if workspaceOnly is off?
The advisory describes a bypass of tools.fs.workspaceOnly. If the setting is off, the other file tools are not restricted to the workspace either.
- What can be read?
Image files in directories mounted through sandbox bridge mounts outside the workspace. The other file tools would reject those paths.
- Is it exploited in the wild?
No source reports exploitation, and it is not in CISA's KEV catalog. The EPSS score is 0.0029.
References
Read for this analysis:
- https://github.com/openclaw/openclaw/commit/14baadda2c456f3cf749f1f97e8678746a34a7f4
- https://github.com/openclaw/openclaw/commit/dd9d9c1c609dcb4579f9e57bd7b5c879d0146b53
- https://nvd.nist.gov/vuln/detail/CVE-2026-35658
- https://github.com/openclaw/openclaw/commit/630f1479c44f78484dfa21bb407cbe6f171dac87
- https://github.com/openclaw/openclaw/commit/ccfeecb6887cd97937e33a71877ad512741e82b2
- https://www.vulncheck.com/advisories/openclaw-filesystem-boundary-bypass-in-image-tool
- https://github.com/advisories/GHSA-cfp9-w5v9-3q4h
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More OpenClaw vulnerabilities
All OpenClaw entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
