Skip to content
Medium 6.9

Wasmtime before 36.0.21 Unbounded Host Memory Growth via AsyncWriteStream Empty Writes

CVE-2026-140420 First seen on SecPulse

Affected packages

PackageAffected → Fixed
bytecodealliancewasmtime
≥ 50.0.0, < 50.0.2→ 50.0.2
crates.iowasmtime
≥ 0.0.0-0, < 36.0.21→ 36.0.21
≥ 37.0.0, < 48.0.9→ 48.0.9
≥ 49.0.0, < 49.0.6→ 49.0.6
≥ 50.0.0, < 50.0.2→ 50.0.2

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details