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

GHSA-7xmq-g46g-f8pv: OpenClaw: Sandbox media TOCTOU could read files outside sandbox root

highCVSS 4.0 8.7

OpenClaw up to 2026.2.26 had a time-of-check/time-of-use gap in sandbox media handling. A symlink swapped between validation and read could make OpenClaw read host files outside `sandboxRoot`. The fix is in 2026.3.1.

Published Mar 2, 2026 · Analysis Oct 31, 2026

What an attacker can do

In the media attachment and image flows, OpenClaw validated a media path first and read it later through a separate code path. If a symlink at that path was retargeted between the two steps, the later read followed it and returned a file from outside the sandbox root.

The result is a host file read that breaks the sandbox boundary. The vector marks high confidentiality impact, with no integrity or availability impact. Winning the race requires the ability to change the symlink in the sandbox-visible path at the right moment, for instance through content an agent or a sandboxed process can write. The advisory does not describe a specific exploit or what files are reachable, so treat any file the OpenClaw process can read as exposed, including credentials and configuration.

Who is affected

The openclaw npm package at version 2026.2.26 and earlier, which the registry data expresses as anything below 2026.3.1. It matters for setups that use the sandbox together with media attachment or image handling.

npm ls -g openclaw
openclaw --version

openclaw

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

How to fix it

Upgrade to openclaw 2026.3.1.

npm install -g [email protected]

Media reads now go through consolidated, root-scoped, boundary-safe read paths applied at use time, which removes the gap between check and use across call sites. The advisory lists no workaround.

How to tell if you were hit

The advisory gives no log signature. Look for symlinks inside the sandbox root that point outside it, especially ones created or changed shortly before a media or image read, and for media attachments whose content matches a host file such as a key or config. Beam's records of agent file access and shell commands can show an agent creating or retargeting symlinks around the sandbox.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

Sandbox media handling had a time-of-check/time-of-use gap: media paths could be validated first and read later through a separate path. A symlink retarget between those steps could cause reads outside sandboxRoot.

Impact

Affected versions could permit host file reads outside the intended sandbox root in media attachment/image flows.

Fix

Media reads now use consolidated root-scoped, boundary-safe read paths at use time, removing check/use drift across call sites.

Affected and Patched Versions

  • Affected: <= 2026.2.26
  • Patched: 2026.3.1

Credited to tdjackey.

Questions

Is OpenClaw 2026.2.26 affected by GHSA-7xmq-g46g-f8pv?

Yes. The affected range is 2026.2.26 and earlier. Version 2026.3.1 contains the fix.

What kind of bug is this?

A TOCTOU race (CWE-367) combined with link following (CWE-59). The path is checked, then read separately, so a symlink swap in between redirects the read.

Can an attacker write files with this?

The advisory describes only reading host files outside the sandbox root. It reports no write or execution capability.

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