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

- Severity: High (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-03-02T21:55:47.000Z
- Modified: 2026-03-04T15:14:01.266Z
- Weaknesses: CWE-59, CWE-367

## Description

### 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`

(As written by GitHub Advisory Database.)

## Affected

- openclaw (npm): before 2026.3.1

## References

- <https://github.com/openclaw/openclaw/security/advisories/GHSA-7xmq-g46g-f8pv> (web)
- <https://github.com/openclaw/openclaw> (package)

## Sources

- GitHub Advisory Database: [GHSA-7xmq-g46g-f8pv](https://github.com/advisories/GHSA-7xmq-g46g-f8pv), CC-BY-4.0, modified 2026-03-04

---

Page: https://cve.day/GHSA-7xmq-g46g-f8pv · Whole record: https://cve.day/GHSA-7xmq-g46g-f8pv.json · Rebuilt by cve.day 2026-11-25T22:56:44.621Z
