# CVE-2026-140420: Wasmtime before 36.0.21 Unbounded Host Memory Growth via AsyncWriteStream Empty Writes

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-11-16T12:00:00.000Z
- Modified: 2026-12-01T16:18:20.713Z
- Also known as: RUSTSEC-2026-0566, GHSA-5m8g-xhq4-4h93
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- bytecodealliance wasmtime: 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 (not affected: 36.0.21; 48.0.9; 49.0.6; 50.0.2)
- wasmtime (crates.io): from 0.0.0-0 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

## Every score

- VulnCheck: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:N/A:H`
- VulnCheck: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H`

## References

- <https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-5m8g-xhq4-4h93> (vendor-advisory)
- <https://www.vulncheck.com/advisories/wasmtime-before-36.0.21-unbounded-host-memory-growth-via-asyncwritestream-empty-writes> (third-party-advisory)
- <https://crates.io/crates/wasmtime> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0566.html> (advisory)
- <https://github.com/bytecodealliance/wasmtime/pull/15317> (web)

## Sources

- CVE List: [CVE-2026-140420](https://www.cve.org/CVERecord?id=CVE-2026-140420), CVE Terms of Use, modified 2026-12-01
- RustSec Advisory Database: [RUSTSEC-2026-0566](https://rustsec.org/advisories/RUSTSEC-2026-0566.html), CC0-1.0, modified 2026-12-01
- NVD: [CVE-2026-140420](https://nvd.nist.gov/vuln/detail/CVE-2026-140420), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-140420 · Whole record: https://cve.day/CVE-2026-140420.json · Rebuilt by cve.day 2026-12-01T16:37:06.788Z
