GHSA-h656-5vcf-cm23: OpenClaw: Unauthorized Telegram Senders Trigger Media Download and Disk Write Before Access Check
In OpenClaw's Telegram channel, inbound media in direct messages was downloaded and written to disk before the sender was checked. Anyone who could message the bot could trigger downloads and disk writes, even when DM access should have been denied. Versions up to 2026.2.23 are affected. Upgrade the `openclaw` npm package to 2026.2.24.
Published Mar 3, 2026 · Analysis Oct 31, 2026
What an attacker can do
The Telegram handler ran media handling ahead of DM authorization. A direct message with a photo, video, audio, voice note, document, sticker or media group caused OpenClaw to fetch the file and store it locally. The sender did not need to pass the pairing policy or the allowlist, and it also happened under the disabled DM policy. Channel activity tracking likewise ran before the access check.
The attacker needs only the bot's Telegram username and the ability to send it a message. They get no code execution and no data access from this flaw. What they get is control over unsolicited network fetches and disk writes on the host, which the advisory ties to resource-exhaustion weaknesses (allocation without limits, network message amplification). Repeated or large media groups from an unapproved sender can fill disk space or waste bandwidth. The advisory gives no CVSS score.
Who is affected
Affected: the openclaw npm package at 2026.2.23 and earlier, for deployments with the Telegram channel enabled and the bot reachable by DM. This includes bots that use the pairing DM policy and bots with DMs set to disabled, since media was handled before either policy applied.
Check the version:
npm ls openclawFor a global install, use npm ls -g openclaw.
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, which the advisory says is published on npm:
npm install [email protected]The fix (commit 9514201f) moves DM authorization into a shared enforceTelegramDmAccess function. bot-handlers.ts calls it for inbound DM media, including media groups, and returns early for unauthorized senders. New tests check that an unauthorized photo under the pairing policy triggers no getFile or fetch call and receives a pairing reply. The advisory lists no workaround.
How to tell if you were hit
Look at the OpenClaw media directory on the host for files that arrived from Telegram senders who are not in your allowlist or pairing list, and for sudden disk growth there. Compare file timestamps with your Telegram message logs. Unexpected outbound requests to Telegram file endpoints from senders you never approved are another sign. After the fix, blocked DMs are answered with a pairing reply or ignored, and no file is written.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Impact
In Telegram DM mode, inbound media was downloaded and written to disk before sender authorization checks completed. An unauthorized sender could trigger inbound media download/write activity (including media groups) even when DM access should be denied.
Affected Packages / Versions
- Package:
openclaw(npm) - Latest published version currently affected:
2026.2.23 - Vulnerable range:
<= 2026.2.23 - Patched in planned next release:
2026.2.24
Fix Commit(s)
9514201fb9b51de5d0b23151110d0ff5d9c8bd67
Technical Details
The Telegram handler flow now enforces DM authorization before media download/write paths execute, including media-group handling. Inbound channel activity tracking was also moved to run after DM authorization in the Telegram message context path.
Release Process Note
patched_versions is pre-set to the planned next release (2026.2.24). After npm publish, the advisory can be published without further version-field edits.
OpenClaw thanks @v8hid 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 v8hid.
Questions
- Does GHSA-h656-5vcf-cm23 let an attacker run code?
No. The advisory describes unauthorized media download and disk writes before the access check, not code execution or data theft.
- Does the disabled DM policy protect me on 2026.2.23?
No. Media was processed before the policy check, so the fix adds a test that DMs under the disabled policy are blocked entirely.
- Which version fixes it?
2026.2.24. Versions up to and including 2026.2.23 are vulnerable.
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
