Wasmtime before 36.0.21 Unbounded Host Memory Growth via AsyncWriteStream Empty Writes
- CVE-2026-140420
- GHSA-5m8g-xhq4-4h93
- GHSA-65jx-qh3r-c8m8
- RUSTSEC-2026-0566
- EUVD-2026-140223
Description
wasmtime-wasi in Wasmtime before 36.0.21, 37.0.0 before 48.0.9, 49.0.0 before 49.0.6, and 50.0.0 before 50.0.2 allows unbounded host memory growth because AsyncWriteStream queues zero-length writes without charging them against its write budget. A malicious guest can repeatedly call wasi:io/streams output-stream.write with empty lists, exhausting host memory and causing denial of service.
Text from the CVE.org record.
Recommendation
bytecodealliance wasmtime
- If you run 50.0.xupdate to 50.0.2 or laterPatch update: breaking changes are unlikely
- If you run 49.0.xupdate to 49.0.6 or laterPatch update: breaking changes are unlikely
- If you run a version from 37.0.0 to before 48.0.9update to 48.0.9 or laterMajor version change: expect breaking changes
- If you run a version before 36.0.21update to 36.0.21 or later
wasmtime
- If you run 50.0.xupdate to 50.0.2 or laterPatch update: breaking changes are unlikelywasmtime 50.0.2 on its registry (opens in a new tab)
- If you run 49.0.xupdate to 49.0.6 or laterPatch update: breaking changes are unlikelywasmtime 49.0.6 on its registry (opens in a new tab)
- If you run a version from 37.0.0 to before 48.0.9update to 48.0.9 or laterMajor version change: expect breaking changeswasmtime 48.0.9 on its registry (opens in a new tab)
- If you run a version from 0.0.0-0 to before 36.0.21update to 36.0.21 or laterMajor version change: expect breaking changeswasmtime 36.0.21 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
bytecodealliance wasmtime
Affected versions Fixed in from 50.0.0 to before 50.0.2 50.0.2 from 49.0.0 to before 49.0.6 49.0.6 from 37.0.0 to before 48.0.9 48.0.9 before 36.0.21 36.0.21 wasmtimecrates.io
Affected versions Fixed in from 50.0.0 to before 50.0.2 50.0.2 from 49.0.0 to before 49.0.6 49.0.6 from 37.0.0 to before 48.0.9 48.0.9 from 0.0.0-0 to before 36.0.21 36.0.21
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.