AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-32033: OpenClaw has a workspace-only sandbox guard mismatch for @-prefixed absolute paths

mediumCVSS 4.0 5.7 · 3.1 7.5GHSA-27cr-4p5m-74rj

OpenClaw 2026.2.23 and earlier can read files outside the workspace when tools.fs.workspaceOnly is true. A path such as @/etc/passwd passes the boundary check, because validation runs before the leading @ is stripped. Fixed in 2026.2.24. The advisory says the path needs a non-default sandbox or tooling configuration.

Published Mar 3, 2026 · Updated Mar 25, 2026 · Analysis Nov 8, 2026

What an attacker can do

With tools.fs.workspaceOnly=true, OpenClaw checks that tool file paths stay inside the workspace. For an @-prefixed absolute path such as @/etc/passwd, the check ran on the raw string, so it was not treated as an escape. Later, runtime path handling removed the @ and read the real absolute path. This is validate-before-canonicalize (CWE-180), leading to path traversal (CWE-22).

In the affected code paths, that allowed reads outside the intended workspace. The agent, or whoever drives the tool call, can then see files such as /etc/passwd, SSH keys or .env files, anything the OpenClaw process can read. A prompt-injected agent that picks the path is one way to trigger it. The advisory does not show writes.

The advisory notes that OpenClaw is mainly a personal-assistant runtime with trusted-user assumptions, and that the path is gated behind non-default sandbox or tooling configuration. That limits practical exposure. Scores differ by version: CVSS 4.0 gives 5.7 (local), and CVSS 3.1 gives 7.5 (network, confidentiality high).

Who is affected

The npm package openclaw at 2026.2.23 and earlier, on setups that rely on tools.fs.workspaceOnly=true as a boundary. If you use the default configuration, you are less exposed, but upgrading is still advised.

npm ls -g openclaw

Then check your OpenClaw config for tools.fs.workspaceOnly.

openclaw

Ecosystem
npm
Affected
<= 2026.2.23
Fixed in
2026.2.24
Check
npm ls openclaw

How to fix it

Upgrade to 2026.2.24 or later.

npm install -g [email protected]

The fix (commit 9ef0fc2) strips a leading @ before the checks in mapContainerPathToWorkspaceRoot, expandPath (via a new normalizeAtPrefix) and isPathInsideHost. It adds tests for @-prefixed container paths, absolute @ paths and workspaceOnly rejection. The advisory lists no workaround.

How to tell if you were hit

Search agent and tool logs for file-read calls whose path begins with @/ or @~, especially pointing at system or credential files. Check for reads of files outside the workspace by the OpenClaw process. Beam records agent file access and shell commands, and its rules can flag reads of sensitive files such as SSH keys, which would catch the result of this bypass.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

A workspace-only file-system guard mismatch allowed @-prefixed absolute paths to bypass boundary validation in some tool path checks.

Impact

When tools.fs.workspaceOnly=true, certain @-prefixed absolute paths (for example @/etc/passwd) could be validated before canonicalization while runtime path handling normalized the prefix differently. In affected code paths this could permit reads outside the intended workspace boundary.

Per SECURITY.md, OpenClaw is primarily a personal-assistant runtime with trusted-user assumptions, and this path is gated behind non-default sandbox/tooling configuration. That reduces practical exposure, but the bypass is still a security bug and is fixed.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Latest published at triage time: 2026.2.23
  • Affected versions: <= 2026.2.23
  • Patched versions: >= 2026.2.24

Fix Commit(s)

  • 9ef0fc2ff8fa7b145d1e746d6eb030b1bf692260

OpenClaw thanks @tdjackey for reporting.

Credited to tdjackey.

Questions

Does CVE-2026-32033 affect the default config?

The advisory says the path is gated behind non-default sandbox or tooling configuration, specifically tools.fs.workspaceOnly=true. That reduces practical exposure.

What does the bypass allow?

Reads outside the intended workspace, for example @/etc/passwd. The advisory does not describe writes.

Which version fixes it?

OpenClaw 2026.2.24 or later. Versions through 2026.2.23 are 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 entries