AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-32026: Temporary path handling could write outside OpenClaw temp boundary

mediumCVSS 4.0 6.1 · 3.1 6.5GHSA-33hm-cq8r-wc49

OpenClaw up to 2026.2.23 accepts absolute paths under the host temp directory as sandbox media without checking they stay inside sandboxRoot. Attachment delivery then trusts them, so host temp files can be read and sent out as attachments. Fixed in 2026.2.24. Moderate severity, high confidentiality impact where sandboxRoot is a strict boundary.

Published Mar 3, 2026 · Updated Mar 20, 2026 · Analysis Nov 7, 2026

What an attacker can do

Sandbox media validation accepted absolute paths under os.tmpdir() without confirming they stayed inside the active sandboxRoot. Attachment delivery then treated those paths as already validated. It could read host temp files that sit outside the sandbox and send them out as attachments. The weaknesses are CWE-22 and CWE-284.

The advisory does not list preconditions. It implies that an attacker-controlled media reference must reach the outbound attachment path, and that the deployment relies on sandboxRoot as its filesystem boundary. An agent steered by a crafted message could be that route.

Temporary directories often hold other programs' downloads, build output, tokens and session files. The advisory rates confidentiality impact high for deployments that treat the sandbox root as strict. Nothing in it points to writes or code execution.

Who is affected

The npm package openclaw up to and including 2026.2.23. Check the version.

npm ls openclaw

The risk is highest if you use sandboxing and rely on sandboxRoot as the boundary, and if the host's temp directory holds data you would not want sent out.

openclaw

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

How to fix it

Upgrade to OpenClaw 2026.2.24 or later. Three commits (d3da67c, 79a7b3d and def993d) restrict sandbox temp-path acceptance to OpenClaw-managed temp roots and default SDK and extension temp helpers to those roots. They also add CI guardrails against broad temp-root changes in messaging and channel code. The advisory lists no workaround.

How to tell if you were hit

Review outbound attachments sent by the agent for files that originate in the system temp directory rather than the sandbox workspace. Check logs for media paths that start with the host os.tmpdir() value. Beam records agent file access, which can show reads under the temp directory.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

Sandbox media local-path validation accepted absolute paths under host tmp, even when those paths were outside the active sandbox root.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Latest published version verified during triage: 2026.2.23
  • Affected versions: <= 2026.2.23
  • Patched versions (planned next release): >= 2026.2.24

Details

In affected versions, sandbox media path resolution allowed absolute host tmp paths as trusted media inputs when they were under os.tmpdir(), without requiring that the path stay within the active sandboxRoot. Because outbound attachment hydration consumed these paths as already validated, this enabled out-of-sandbox host tmp file reads and exfiltration through attachment delivery.

Impact

  • Confidentiality impact: high for deployments relying on sandboxRoot as a strict local filesystem boundary.
  • Practical impact: attacker-controlled media references could read and attach host tmp files outside the sandbox workspace boundary.

Remediation

  • Restrict sandbox tmp-path acceptance to OpenClaw-managed temp roots only.
  • Default SDK/extension temp helpers to OpenClaw-managed temp roots.
  • Add CI guardrails to prevent broad tmp-root regressions in messaging/channel code paths.

Fix Commit(s)

  • d3da67c7a9b463edc1a9b1c1f7af107a34ca32f5
  • 79a7b3d22ef92e36a4031093d80a0acb0d82f351
  • def993dbd843ff28f2b3bad5cc24603874ba9f1e

Release Process Note

The advisory is pre-set with patched version 2026.2.24 so it is ready for publication once that npm release is available.

OpenClaw thanks @tdjackey for reporting.

Publication Update (2026-02-25)

[email protected] is published on npm and contains the fix commit(s) listed above. This advisory now marks >= 2026.2.24 as patched.

Credited to tdjackey.

Questions

Which version fixes CVE-2026-32026?

OpenClaw 2026.2.24 or later. Versions up to 2026.2.23 are affected.

Does this allow writing files?

The advisory describes reading and attaching host temp files outside the sandbox. It does not describe writes, despite the 'write outside temp boundary' title.

Who is most at risk?

Deployments that treat sandboxRoot as a strict filesystem boundary, where confidentiality impact is rated high.

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