CVE-2026-140420: wasmtime-wasi: Unbounded host memory growth via empty writes to `AsyncWriteStream`

Published Nov 16, 2026
·
Updated

This is an entry in the RustSec database for the Wasmtime security advisory located at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-5m8g-xhq4-4h93 For more information see the GitHub-hosted security advisory.

Other sources

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.

— MITRE

Affected Software

5 affected componentsFixes available
crates/wasmtime-wasi<36.0.21, >=37.0.0<48.0.9, >=49.0.0<49.0.6, >=50.0.0<50.0.2
rust/wasmtime>=0.0.0-0<36.0.21
36.0.21
rust/wasmtime>=37.0.0<48.0.9
48.0.9
rust/wasmtime>=49.0.0<49.0.6
49.0.6
rust/wasmtime>=50.0.0<50.0.2
50.0.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rust/wasmtime to a version that resolves this vulnerability.

    Fixed in 36.0.21
  2. Upgrade

    Upgrade rust/wasmtime to a version that resolves this vulnerability.

    Fixed in 48.0.9
  3. Upgrade

    Upgrade rust/wasmtime to a version that resolves this vulnerability.

    Fixed in 49.0.6
  4. Upgrade

    Upgrade rust/wasmtime to a version that resolves this vulnerability.

    Fixed in 50.0.2

Event History

Nov 16, 2026
Advisory Published
via OSV·12:00 PM
Data Sourced
via OSV·12:00 PM
DescriptionAffected Software
Dec 1, 2026
CVE Published
via MITRE·02:28 PM
Data Sourced
via MITRE·02:28 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·02:28 PM
SeverityWeakness
Data Sourced
via NVD·03:18 PM
DescriptionSeverityWeakness
Event
via NVD·03:18 PM

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using the wasmtime-wasi crate in Wasmtime versions before 36.0.21, versions 37.0.0 through before 48.0.9, versions 49.0.0 through before 49.0.6, or versions 50.0.0 through before 50.0.2 are affected.

2

What must an attacker be able to do to trigger the denial of service?

An attacker needs to run or control a malicious WASI guest that can call wasi:io/streams output-stream.write. The guest repeatedly submits empty write lists, causing AsyncWriteStream to queue writes without consuming its write budget.

3

What is the impact of successful exploitation?

Repeated zero-length writes can cause unbounded memory growth in the host. This can exhaust host memory and deny service to the Wasmtime host or workloads running on it.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203