CVE-2026-35633: OpenClaw: Remote media error responses could trigger unbounded memory allocation before failure
OpenClaw before 2026.3.22 reads the whole body of a failed remote media download into memory before it reports the error. A server that returns a huge non-2xx response can make the OpenClaw process allocate memory without limit and crash. Upgrade the npm package openclaw to 2026.3.22 or later.
Published Mar 26, 2026 · Updated Jul 1, 2026 · Analysis Oct 31, 2026
What an attacker can do
When OpenClaw fetches remote media and the server answers with an error status, readErrorBodySnippet in src/media/fetch.ts called res.text(). That call buffers the full body, even though OpenClaw only needs a short snippet for the error message. Successful downloads already had size caps and idle timeouts. The error path did not.
An attacker needs a URL that OpenClaw will fetch and a server they control, or a compromised remote host. The server replies with an error and streams an endless or very large body. Memory use grows until the process is slow or killed. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VA:H) rates the impact as availability only, with one attack precondition.
For a team running OpenClaw as an agent gateway, the practical risk is that anyone who can get the agent to fetch a link, through a message or a web page, can take the agent down. Nothing in the advisory shows data theft or code execution.
Who is affected
Affected: the openclaw npm package before 2026.3.22. Versions 2026.3.22, 2026.3.23 and 2026.3.23-2 contain the fix. Check what is installed:
npm ls openclaw
openclaw --versionAny deployment that lets the agent fetch remote media from URLs it does not control is exposed.
openclaw
- Ecosystem
- npm
- Affected
- < 2026.3.22
- Fixed in
- 2026.3.22
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.3.22 or later:
npm install -g openclaw@latestThe fix is commit 81445a901091a5d27ef0b56fceedbe4724566438. It adds readResponsePrefix and readResponseTextSnippet in src/media/read-response-with-limit.ts. Error bodies are now read up to 8 KiB, cut to a 200-character snippet, and subject to the same idle timeout as successful downloads. The advisory lists no workaround.
How to tell if you were hit
Look for OpenClaw processes whose memory grows sharply while fetching remote media, out-of-memory kills, and container restarts that line up with media fetches. In logs, find the URLs of fetches that returned non-2xx statuses and check whether one host returned unusually large bodies. After the update, error messages carry at most a short truncated snippet, so a very long "body:" detail in an error means you still run the old code.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Remote media HTTP error bodies were read without a hard size cap before failure handling, allowing unbounded allocation on error responses.
Affected Packages / Versions
- Package:
openclaw(npm) - Affected: < 2026.3.22
- Fixed: >= 2026.3.22
- Latest released tag checked:
v2026.3.23-2(630f1479c44f78484dfa21bb407cbe6f171dac87) - Latest published npm version checked:
2026.3.23-2
Fix Commit(s)
81445a901091a5d27ef0b56fceedbe4724566438
Release Status
The fix shipped in v2026.3.22 and remains present in v2026.3.23 and v2026.3.23-2.
Code-Level Confirmation
- src/media/fetch.ts now routes non-2xx failures through bounded prefix reads instead of buffering the whole error body.
- src/media/read-response-with-limit.ts enforces capped reads and truncates oversized snippets before surfacing failure text.
OpenClaw thanks @YLChen-007 for reporting.
Credited to YLChen-007.
Questions
- Is OpenClaw 2026.3.21 affected by CVE-2026-35633?
Yes. Every openclaw version before 2026.3.22 is listed as vulnerable. 2026.3.22 is the first fixed release.
- Can this lead to code execution?
Not according to the advisory. The CVSS vector shows high availability impact only. It is uncontrolled memory allocation (CWE-400 and CWE-770).
- What does the fix cap the error body at?
The fix commit reads at most 8 KiB of an error body, trims the snippet to 200 characters, and applies the per-chunk idle timeout used for successful downloads.
- Is it exploited in the wild?
No source reports exploitation, and the entry is not in CISA's KEV catalog. The EPSS score is 0.0036.
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
