CVE-2026-32002: OpenClaw's image tool bypasses tools.fs.workspaceOnly on sandbox mount paths and exfiltrates out-of-workspace images
OpenClaw's sandboxed `image` tool ignored `tools.fs.workspaceOnly=true` for mounted paths such as `/agent/*`. An agent could load out-of-workspace images and send their bytes to a vision model provider. Versions before 2026.2.23 are affected. Upgrade `openclaw` to 2026.2.23.
Published Mar 4, 2026 · Updated Mar 30, 2026 · Analysis Oct 31, 2026
What an attacker can do
With tools.fs.workspaceOnly=true, the read, write and edit tools and apply_patch refused paths outside the workspace. The image tool did not receive that setting. Its sandbox path resolution, through the sandbox FS bridge, could therefore open mounted files outside the workspace root (CWE-200, CWE-284).
The loaded bytes then went to the configured vision model provider as part of a normal model request. That is the exfiltration channel: the data leaves the host inside an API call, not through a shell or network tool the operator might block.
The attacker needs to steer the agent, for example through a prompt injection in content it processes, and the target must be an image file on a mount the sandbox exposes. The advisory rates attack complexity high and the impact as confidentiality only. Screenshots, scanned documents or photos in mounted directories are the realistic loss.
Who is affected
The openclaw npm package up to and including 2026.2.22-2 (the vulnerable range is below 2026.2.23). It matters where you run sandboxed agents with tools.fs.workspaceOnly=true and expose extra mounts, such as /agent/*. Check with:
npm ls openclawReview your sandbox mount list for directories that hold images you would not want sent to a model provider.
openclaw
- Ecosystem
- npm
- Affected
- < 2026.2.23
- Fixed in
- 2026.2.23
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.2.23 or later:
npm install [email protected]The fix commit is dd9d9c1c609dcb4579f9e57bd7b5c879d0146b53. It passes workspaceOnly into image-tool construction and asserts sandbox-root containment before the media bytes are loaded. The advisory lists no workaround.
How to tell if you were hit
Review agent tool-call logs for image calls whose path points at a mount outside the workspace, such as /agent/. Check model provider request logs for unexpected image payloads. Beam records agent file access, so a read of an out-of-workspace image can appear in its history. The advisory names no log signature.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
In OpenClaw, the sandboxed image tool did not honor tools.fs.workspaceOnly=true for mounted paths resolved by the sandbox FS bridge. This allowed reading out-of-workspace mounted images (for example /agent/*) and forwarding those bytes to vision model providers.
Impact
Sandbox boundary bypass with confidentiality impact. In affected versions, read/write/edit respected workspace-only guardrails, but image could still load mounted out-of-workspace files and exfiltrate them via model requests.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected versions:
<= 2026.2.22-2 - Patched versions:
>= 2026.2.23(released) - Latest published npm at triage time:
2026.2.22-2
Technical Details
workspaceOnly was enforced in sandbox file tools and apply_patch, but not propagated/enforced for image sandbox path resolution. The fix threads workspaceOnly into image-tool construction and asserts sandbox-root containment before loading media bytes.
Fix Commit(s)
dd9d9c1c609dcb4579f9e57bd7b5c879d0146b53
OpenClaw thanks @tdjackey for reporting.
Credited to tdjackey.
Questions
- Did read and write tools also bypass workspaceOnly in CVE-2026-32002?
No. The advisory says
read,writeandeditrespected the guardrails. Only theimagetool loaded mounted out-of-workspace files.- Where does the stolen image data go?
To the vision model provider the agent is configured to use, inside a model request.
- Which version fixes it?
openclaw 2026.2.23 or later. The advisory lists 2026.2.22-2 and earlier as affected.
References
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
