GHSA-58q2-7r52-jq62: OpenClaw: Path traversal via inbound channel attachment path in ACP dispatch allows arbitrary file read
OpenClaw 2026.3.28 and earlier read inbound channel attachment paths in ACP dispatch without limiting them to the attachment roots. A crafted attachment path can make the gateway read an arbitrary local file and pass it on. Upgrade to openclaw 2026.3.31, which confines reads to allowed inbound roots.
Published Apr 3, 2026 · Analysis Oct 30, 2026
What an attacker can do
When a message arrives from a chat channel with an attachment, ACP dispatch (src/auto-reply/reply/dispatch-acp.ts) read the attachment's local path itself, with a direct fs call. That read sat outside the guarded attachment cache and its root checks. A path such as an absolute path, a file:// URL or a relative path with .. segments could point anywhere on the host the OpenClaw process can read.
The attacker needs to be able to send a message with a crafted attachment through a channel the gateway handles. The CVSS 4.0 vector shows network access and low privileges, so some account or channel access is expected. The file is read as an image attachment and handed to the ACP turn, which can expose its contents to the model or back to the sender. The impact is limited confidentiality loss: reads only, no write and no code execution. What leaks depends on what the OpenClaw user can read, such as config files with tokens or SSH keys. The maintainers rate it medium.
Who is affected
The npm package openclaw at 2026.3.28 and earlier, wherever channels deliver attachments to ACP dispatch. Version 2026.3.31 is the first stable release with the fix.
Check your install:
npm ls -g openclaw
openclaw --versionThe risk is highest for gateways that accept messages from people you do not fully trust and run as a user with access to sensitive files.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.3.28
- Fixed in
- 2026.3.31
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.31 or later.
npm install -g [email protected]Commit 566fb73d routes attachment reads through MediaAttachmentCache with localPathRoots taken from resolveMediaAttachmentLocalRoots. Local reads open the file read-only with O_NOFOLLOW on non-Windows systems, reject anything that is not a regular file, resolve the real path and check it against the allowed roots. Only image types are processed, with a 10 MB limit and a 1000 ms timeout. A blocked local path no longer falls back to a remote URL fetch. The advisory names no workaround.
How to tell if you were hit
Review message and attachment logs for inbound attachments whose local path is absolute, a file:// URL, or contains .. segments, or points outside your channel's attachment directory. Look for ACP turns that included image data from files you did not expect, such as config or key files. On patched versions, blocked paths are logged as skipped attachments and the ACP turn is skipped, so those log lines mark attempts. If you suspect a read of secrets, rotate them.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Path traversal via inbound channel attachment path in ACP dispatch allows arbitrary file read
Current Maintainer Triage
- Normalized severity: medium
- Assessment: v2026.3.28 ACP dispatch still reads attachment paths outside the guarded attachment-cache or root checks, and the root-enforcement fix is not yet shipped.
Affected Packages / Versions
- Package:
openclaw(npm) - Latest published npm version:
2026.3.31 - Vulnerable version range:
<=2026.3.28 - Patched versions:
>= 2026.3.31 - First stable tag containing the fix:
v2026.3.31
Fix Commit(s)
566fb73d9da2d73c0be0d9b8e5b762e4dcd8e81d— 2026-03-30T14:04:02+01:00
OpenClaw thanks @north-echo for reporting.
Credited to north-echo.
Questions
- Which OpenClaw versions are affected by GHSA-58q2-7r52-jq62?
2026.3.28 and earlier. The first stable release with the fix is 2026.3.31. The advisory has no CVE id.
- Can this write files or run commands?
No. It is an arbitrary file read. The CVSS vector scores low confidentiality impact and none for integrity and availability.
- Is it exploited in the wild?
No source I read says so, and the entry has no CISA KEV flag.
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 entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
