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

CVE-2026-33581: OpenClaw's message tool media parameter bypasses tool policy filesystem isolation

highCVSS 4.0 7.1 · 3.1 6.2GHSA-v8wv-jg3q-qwpq

In OpenClaw before 2026.3.24, the message tool accepts mediaUrl and fileUrl as aliases for its media parameters but skipped the sandbox localRoots check on them. A caller confined to sandbox media roots could read arbitrary local files by passing the alias. Upgrade to 2026.3.24 or later.

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

What an attacker can do

OpenClaw's message tool can attach media to outgoing messages. The canonical parameters (media, path, filePath) were checked against the sandbox's allowed local roots. The aliases mediaUrl and fileUrl went through a different path, in src/infra/outbound/message-action-params.ts, with no such check. Pointing an alias at a file outside the roots made the tool read it and attach it.

The attacker needs to be able to call the message tool under a tool policy that limits filesystem access. That includes a model steered by prompt injection. The result is arbitrary local file read by the OpenClaw process: configuration, keys, tokens and source files, which can then leave through the message channel itself. It does not give write or code execution. The tool-policy filesystem isolation is the control that fails. Vulnerable CVSS 4.0 rating is 7.1, with a 3.1 vector of 6.2.

Who is affected

npm package openclaw, versions before 2026.3.24, on deployments that restrict the message tool with sandbox media roots. Check the version:

npm ls openclaw

The fixed range starts at 2026.3.24, and 2026.3.28 is the latest stable named in the advisory.

openclaw

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

How to fix it

Upgrade to openclaw 2026.3.24 or later:

npm install [email protected]

The fix (commit 1d7cb6fc03) adds mediaUrl and fileUrl to the keys that normalizeSandboxMediaParams validates. Relative values resolve under the sandbox root. Absolute paths and file:// URLs outside it are rejected. Remote HTTP(S) URLs pass through. The sources give no workaround.

How to tell if you were hit

Review message tool calls for mediaUrl or fileUrl arguments that hold absolute paths, file:// URLs or ../ segments. Check outbound messages for attachments you did not expect, such as config or key files. The advisory gives no log signature. Beam records the file access and tool calls of agents on the host, so its record can show a message tool reading outside the workspace.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

The message tool accepted mediaUrl and fileUrl aliases without applying the same sandbox localRoots validation as the canonical media path handling.

Impact

A caller constrained to sandbox media roots could read arbitrary local files by routing them through the alias parameters.

Affected Component

src/infra/outbound/message-action-params.ts, src/infra/outbound/message-action-runner.ts

Fixed Versions

  • Affected: < 2026.3.24
  • Patched: >= 2026.3.24
  • Latest stable 2026.3.28 contains the fix.

Fix

Fixed by commit 1d7cb6fc03 (fix: close sandbox media root bypass for mediaUrl/fileUrl aliases).

OpenClaw thanks @AntAISecurityLab for reporting.

Credited to AntAISecurityLab.

Questions

Is OpenClaw 2026.3.23 affected by CVE-2026-33581?

Yes. Every version before 2026.3.24 is affected. The fixed release is 2026.3.24.

Does the bug let an attacker write files?

No. It is an arbitrary read (CWE-22). The confidentiality impact is high and integrity impact is none.

Which parameters bypassed the check?

mediaUrl and fileUrl, aliases of the canonical media and path parameters. They skipped the sandbox localRoots validation.

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