Home › CVE › Vulnerabilities
CVE-2026-140420 — bytecodealliance wasmtime
One of 8 bytecodealliance wasmtime vulnerabilities published together by NVD: our article covers all of them.
VulnerabilitiesSummary
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.
Severity breakdown
Medium · 6.9
An attacker with a normal user account can exploit this over the network if a user views or visits something, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- yes, a normal user account
- User action needed
- yes, a user must view or visit something
- Impact
- high on availability, none on confidentiality and integrity
- Impact on other systems
- high on availability, none on confidentiality and integrity
Weakness
- CWE-770: Allocation of Resources Without Limits or Throttling
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| bytecodealliance wasmtime | < 36.0.21 | 36.0.21 |
| bytecodealliance wasmtime | ≥ 37.0.0, < 48.0.9 | 48.0.9 |
| bytecodealliance wasmtime | ≥ 49.0.0, < 49.0.6 | 49.0.6 |
| bytecodealliance wasmtime | ≥ 50.0.0, < 50.0.2 | 50.0.2 |
References by type
Vendor advisories
Other references
Affected
- bytecodealliance wasmtime
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-140420?
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. Weakness type: Allocation of Resources Without Limits or Throttling (CWE-770).
How severe is CVE-2026-140420?
CVE-2026-140420 has a CVSS 4.0 base score of 6.9 (medium), from the CNA (vulncheck.com). An attacker with a normal user account can exploit this over the network if a user views or visits something, but only under specific conditions.
Is CVE-2026-140420 being exploited?
Not as far as is known: CVE-2026-140420 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026.
Which versions are affected by CVE-2026-140420?
bytecodealliance wasmtime < 36.0.21 (fixed in 36.0.21); bytecodealliance wasmtime ≥ 37.0.0, < 48.0.9 (fixed in 48.0.9); bytecodealliance wasmtime ≥ 49.0.0, < 49.0.6 (fixed in 49.0.6); bytecodealliance wasmtime ≥ 50.0.0, < 50.0.2 (fixed in 50.0.2).
How do I fix CVE-2026-140420?
Update to a fixed release: bytecodealliance wasmtime 36.0.21; bytecodealliance wasmtime 48.0.9; bytecodealliance wasmtime 49.0.6.