NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-33574: OpenClaw's skills-install-download can be redirected outside the tools root by rebinding the validated base path

mediumCVSS 4.0 6.9GHSA-vhwf-4x96-vqx2

OpenClaw's skill download installer checked the per-skill tools root as a path string, then reused that same mutable path to download and copy the archive. A local attacker who swaps the root for a symlink between the check and the write can send the file outside the tools directory. Fixed in openclaw 2026.3.8; 2026.3.7 and earlier are affected.

Published Mar 12, 2026 · Updated Apr 6, 2026 · Analysis Oct 31, 2026

What an attacker can do

installDownloadSpec in src/agents/skills-install-download.ts validated the target directory against the lexical safeRoot path. The write later used that same path. This is a time-of-check to time-of-use race (CWE-367). If the safeRoot directory is renamed and replaced with a symlink to another directory after validation, the downloaded archive lands in the symlink target.

The advisory text says a local attacker must be able to rebind the tools-root path in that window. The CVSS 4.0 vector in the data records network attack vector with low integrity impact only, no confidentiality or availability impact. In practice an attacker who has write access to the directory that holds the tools root, for instance another process or user on a shared host, can use the window of a streamed download to place skill archive contents in a location of their choice. The content comes from the skill being installed. A skill from an untrusted source adds to the risk.

The project's regression test reproduces the race by replacing the root with a symlink during the streamed download and expects the install to fail.

Who is affected

The openclaw npm package, up to and including 2026.3.7. The advisory names 2026.3.7 as the latest vulnerable release. Exposure is on hosts where skills are installed from download specs and where another party can modify the directory that holds the per-skill tools root.

npm ls -g openclaw
openclaw --version

openclaw

Ecosystem
npm
Affected
<= 2026.3.7
Fixed in
2026.3.8
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.3.8 or later. The advisory verified the fix in the v2026.3.8 GitHub release published on March 9, 2026.

npm install -g [email protected]

The fix (commit 9abf014) resolves the real path of the safe root once with realpath after validation, rebases the target directory onto that canonical root, and uses it for the archive path, the downloadFile root and the final containment check. Rebinding the original path then fails closed. The sources give no workaround.

How to tell if you were hit

Look for symlinks where a skill tools root directory should be, and for skill payload files outside the tools directory:

find / -xdev -type l -path "*tools*" -ls 2>/dev/null

Failed installs after upgrading may show the containment error from the fixed check. Compare the list of installed skills with files that recently appeared next to the tools directory.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

OpenClaw's skills download installer validated the intended per-skill tools root lexically, but later reused that mutable path while downloading and copying the archive into place. If a local attacker could rebind that tools-root path between validation and the final write, the installer could be redirected to write outside the intended tools directory.

The fix pins the canonical per-skill tools root immediately after validation and derives later download/copy paths from that canonical root, so rebinding the lexical path fails closed instead of redirecting the write.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Latest published vulnerable version: 2026.3.7
  • Affected range: <= 2026.3.7
  • Fixed in released version: 2026.3.8

Fix Commit(s)

  • 9abf014f3502009faf9c73df5ca2cff719e54639

Release Verification

  • Verified fixed in GitHub release v2026.3.8 published on March 9, 2026.
  • Verified npm view openclaw version resolves to 2026.3.8.
  • Verified the release contains the regression test covering tools-root rebinding and that the test passes against the v2026.3.8 tree.

Thanks @tdjackey for reporting.

Credited to tdjackey.

Questions

Is CVE-2026-33574 a remote exploit?

The advisory text describes a local attacker who rebinds the tools-root path between validation and the final write. It is a race condition, so it needs good timing.

Which version fixes it?

openclaw 2026.3.8. The latest vulnerable release was 2026.3.7.

What does the fix change?

It pins the canonical per-skill tools root right after validation and derives all later download and copy paths from it.

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