AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-32013: OpenClaw gateway agents.files symlink escape allowed out-of-workspace file read/write

criticalCVSS 4.0 9.3 · 3.1 8.8GHSA-fgvx-58p6-gjwc

OpenClaw gateway methods `agents.files.get` and `agents.files.set` follow symlinks out of the agent workspace in versions before 2026.2.25. A symlinked allowlisted file such as `AGENTS.md` lets a caller read and write host files with the gateway's permissions. Upgrade to 2026.2.25.

Published Mar 2, 2026 · Updated Mar 20, 2026 · Analysis Nov 15, 2026

What an attacker can do

The gateway exposes agents.files.get and agents.files.set for a short allowlist of workspace files, for example AGENTS.md. The code did not resolve real paths. If one of those allowlisted names is a symlink pointing outside the workspace, the gateway reads or writes the link target.

That gives arbitrary file read and write on the host, limited to what the gateway process may access. Reads can expose credentials, SSH keys and config files. Writes can plant or replace files that run later, such as shell profiles, cron entries, scripts or service config, which the advisory notes can chain to code execution.

The attacker needs a way to call the gateway methods and a symlink with an allowlisted name inside the agent workspace. The symlink can come from a cloned repository or from an earlier agent action. The CVSS 4.0 vector rates it as network, no privileges, high confidentiality and integrity impact. The CVSS 3.1 vector requires low privileges. Either way, any exposed or shared gateway is the main concern.

Who is affected

The npm package openclaw below 2026.2.25 (the advisory says up to and including 2026.2.24, the latest vulnerable release at patch time). Gateways whose agent workspaces can hold symlinks, for example cloned repositories, are most at risk.

Check your install:

npm ls openclaw

openclaw

Ecosystem
npm
Affected
< 2026.2.25
Fixed in
2026.2.25
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.2.25 or later:

npm install -g [email protected]

The fix (commit 125f4071) makes agents.files resolve real workspace paths, enforce containment for resolved targets and reject symlink targets outside the workspace. Symlinks that stay inside the workspace still work. The advisory lists no workaround. Until you upgrade, do not expose the gateway to untrusted callers.

How to tell if you were hit

Search agent workspaces for allowlisted files that are symlinks pointing outside the workspace:

find /path/to/workspaces -maxdepth 2 -name AGENTS.md -type l -ls

Review gateway logs for agents.files.get and agents.files.set calls, and check the files those links point to for unexpected changes. Beam records agent file access, so out-of-workspace reads and writes by an agent can show up there.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

The gateway agents.files.get and agents.files.set methods allowed symlink traversal for allowlisted workspace files. A symlinked allowlisted file (for example AGENTS.md) could resolve outside the agent workspace and be read/written by the gateway process.

This could enable arbitrary host file read/write within the gateway process permissions, and chained impact up to code execution depending on which files are overwritten.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected versions: <= 2026.2.24
  • Latest published vulnerable version at patch time: 2026.2.24
  • Patched versions: >= 2026.2.25

Remediation

agents.files now resolves real workspace paths, enforces containment for resolved targets, rejects out-of-workspace symlink targets, and keeps in-workspace symlink targets supported. The patch also adds gateway regression tests for blocked escapes and valid in-workspace symlink behavior.

Fix Commit(s)

  • 125f4071bcbc0de32e769940d07967db47f09d3d

Release Process Note

patched_versions is intentionally pre-set to the release (2026.2.25). Advisory published with npm release 2026.2.25.

OpenClaw thanks @tdjackey for reporting.

Credited to tdjackey.

Questions

Does CVE-2026-32013 allow code execution?

Not directly. It gives file read and write with the gateway's permissions. The advisory says this can chain to code execution depending on which files an attacker overwrites.

Which OpenClaw version fixes it?

2026.2.25. Version 2026.2.24 was the latest vulnerable release when the patch shipped.

Do symlinks inside the workspace still work?

Yes. The fix rejects only symlink targets that resolve outside the workspace. In-workspace symlinks remain supported.

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