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
- 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.
Affected software
| Software | Affected versions |
|---|---|
wasmtime-wasicrates.io · osv:crates.io:wasmtime-wasi |
|
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
- CVE-2026-126410Wasmtime 48.0.0 before 48.0.8 TOCTOU UDP Send Policy Bypass via wasip3 SocketsMedium 5.3 13 Nov 2026
- CVE-2026-118688Wasmtime before 36.0.18, 37.0.0 before 48.0.6, and 49.0.0 before 49.0.3 Sandbox Escape via Symlink RenameHigh 8.8 28 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-140420