All vulnerabilities

crates.io

CVE-2026-140420

Wasmtime before 36.0.21 Unbounded Host Memory Growth via AsyncWriteStream Empty Writes

Severity
Medium 5.8
Published
1 Dec 2026
Last changed
1 Dec 2026
Added to UpHeron
1 Dec 2026
Fixed in
36.0.21, 48.0.9, 49.0.6, 50.0.2
Weakness
Allocation without limits (CWE-770)
Attack
Over the network · Only under certain conditions · Needs a user account · Needs someone to click or open something
Attacker can
Take it down
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:N/A:H
Sources
CVE Program

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.

From the CVE Program.

Affected software

SoftwareAffected versions
wasmtime-wasicrates.io · osv:crates.io:wasmtime-wasi
  • Every version before 36.0.21
  • From 37.0.0 before 48.0.9
  • From 49.0.0 before 49.0.6
  • From 50.0.0 before 50.0.2

About wasmtime-wasi

Downloads in the last 90 days (crates.io)
4,961,563crates.io, 1 Dec 2026
Total downloads (crates.io)
15,491,854crates.io, 1 Dec 2026

Vulnerabilities in wasmtime-wasi

In our list
3
Published in the last 12 months
3
Critical, last 12 months
0
High, last 12 months
1
Known exploited
0
Search the list for wasmtime-wasi

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-140420