Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRun malicious guest on vulnerable embedding
-
DeliveryObtain guest-reachable AsyncWriteStream output
-
ExploitLoop output-stream.write with empty lists
-
ExecutionQueue unbudgeted zero-length buffers on host heap
-
ImpactExhaust host memory, deny service
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires (1) an attacker able to supply/run a malicious WebAssembly guest, and (2) an embedding of wasmtime-wasi (p2) that gives that guest access to an output stream backed by wasmtime_wasi::p2::pipe::AsyncWriteStream - in practice via AsyncStdoutStream, the C API wasi_config_set_stdout_custom, or an embedder's own hostcall that uses AsyncWriteStream. The guest then calls wasi:io/streams output-stream.write with zero-length lists in a loop. LIMITING FACTORS: this is NOT a default-everywhere condition - the Wasmtime CLI does not use AsyncWriteStream and is unaffected; embeddings that do not route a guest-reachable stream to AsyncWriteStream are not exploitable. Affected versions: wasmtime <36.0.21, 37.0.0-<48.0.9, 49.0.0-<49.0.6, and 50.0.0-<50.0.2. Impact is denial of service only (host memory exhaustion); no data disclosure or code execution. |
| Impact | This is a moderate, defensively-relevant availability issue rather than a top-tier emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:P) and 6.9 score describe an availability-only denial of service: there is no confidentiality or integrity impact (VC:N/VI:N), only high availability impact on the host (VA:H/SA:H). The AT:P (attack requirements present) and PR:L signals align with the advisory's key caveat - exploitation requires that the embedding actually routes a guest-reachable output stream to an AsyncWriteStream, which is NOT universal (the Wasmtime CLI itself is explicitly not vulnerable). All exploitation signals point low-to-moderate: SSVC reports Exploitation: none, Automatable: no, Technical Impact: partial; the vuln.today priority Decision label is 'this_month' (not act_now/emergency). No EPSS score and no KEV listing are provided, and no working exploit code is referenced - only vendor/VulnCheck advisories. Note a tension worth flagging: the input CVSS 4.0 vector is AV:N, but the actual trigger is a malicious WebAssembly guest executing hostcalls on the host, which is closer to a local/in-sandbox vector - the 'network' labeling reflects that guests are often remotely supplied in serverless/edge deployments rather than a remote unauthenticated network exploit. Overall: a real but bounded DoS that embedders using wasip2 AsyncWriteStream should patch on a normal monthly cycle, not an under-active-attack crisis. |
| Exploit ScenarioDerived | A platform runs untrusted WebAssembly guests on a Wasmtime embedding that wires a guest-accessible output stream (e.g. AsyncStdoutStream / wasi_config_set_stdout_custom) to AsyncWriteStream. A malicious guest repeatedly invokes wasi:io/streams output-stream.write with empty (zero-length) lists; each call queues an empty Bytes (~32 bytes on x86_64/aarch64) into a VecDeque without charging the write budget, so host heap grows without bound until the host exhausts memory. No public working exploit code is referenced, but the technique is trivial and fully described in the vendor advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Unbounded host memory growth in the wasmtime-wasi (WASI Preview 2) crate of Wasmtime lets a malicious WebAssembly guest exhaust host heap by repeatedly calling wasi:io/streams output-stream.write with empty lists, causing denial of service. Only embeddings that route a guest-reachable output stream to wasmtime_wasi::p2::pipe::AsyncWriteStream are exposed - in practice via AsyncStdoutStream, the C API wasi_config_set_stdout_custom, or an embedder's own hostcall built on that type; the Wasmtime CLI itself does not use AsyncWriteStream and is unaffected. Impact is availability only (no disclosure or code execution), no public exploit code was identified at time of analysis, and the issue is prioritized for remediation in the current monthly patch cycle rather than as an emergency.
RemediationAI
Apply the vendor-released patch by upgrading wasmtime-wasi to the fixed version for your branch: 36.0.21 (for releases before 36.0.21), 48.0.9 (for 37.0.0 and later up to that branch), 49.0.6 (for 49.0.0 and later), or 50.0.2 (for 50.0.0 and later), per the advisory at https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-5m8g-xhq4-4h93 and the VulnCheck note at https://www.vulncheck.com/advisories/wasmtime-before-36.0.21-unbounded-host-memory-growth-via-asyncwritestream-empty-writes. For embedders that cannot upgrade immediately, the practical compensating control is to stop routing guest-reachable output streams through AsyncWriteStream - avoid AsyncStdoutStream and the C API wasi_config_set_stdout_custom, or substitute a synchronous/custom stream implementation that enforces its own byte and call accounting; the trade-off is loss of asynchronous stdout piping and, for custom streams, added host-side accounting code. Note that the Wasmtime CLI requires no action for this specific issue, and that these workarounds reduce exposure rather than replacing the fixed releases.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in cargo
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Wasmtime is the Bytecode Alliance's WebAssembly runtime, and wasmtime-wasi supplies the host-side implementation of WASI Preview 2 interfaces. AsyncWriteStream takes ownership of the list<u8> argument passed to wasi:io/streams output-stream.write and queues it as a Bytes value at the back of a VecDeque, with a tracked write budget intended to cap how much buffered data a guest can accumulate. A zero-length write enqueues an empty Bytes that consumes 32 bytes of host memory on x86_64 and aarch64 but is not charged against that write budget, so a guest looping on empty writes grows the queue without limit. The root cause class is CWE-770 (Allocation of Resources Without Limits or Throttling). Reachability is configuration-dependent: the vulnerable path exists wherever a guest-controlled stream is backed by AsyncWriteStream, which includes AsyncStdoutStream, wasi_config_set_stdout_custom in the C API, and third-party hostcall implementations; embeddings that never route a guest-reachable stream to this type do not contain the vulnerable code path.
Know when Wasmtime gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
A malicious guest executes locally on the host (AV:L) with trivial repeated empty writes (AC:L) and guest-execution privilege (PR:L); the sandbox-to-host memory exhaustion is a scope change with availability-only impact (S:C/A:H).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Sandbox escape in Wasmtime on aarch64 lets a user-supplied WebAssembly module redirect an oversized br_table branch to a
Wasmtime versions before 36.0.19, and the 37.0.0 through 42.x line, can silently miscompile attacker-supplied WebAssembl
wasmtime is a fast and secure runtime for WebAssembly. Rated critical severity (CVSS 9.9), this vulnerability is remotel
Wasmtime is a standalone runtime for WebAssembly. Rated critical severity (CVSS 9.8), this vulnerability is remotely exp
Wasmtime is a standalone JIT-style runtime for WebAssembly, using Cranelift. Rated critical severity (CVSS 9.8), this vu
wasmtime is a runtime for WebAssembly. Rated medium severity (CVSS 5.5), this vulnerability is low attack complexity. Pu
Memory sandbox escape in Wasmtime's Winch compiler (versions 25.0.0 to before 36.0.7, 42.0.2, 43.0.1) enables authentica
Arbitrary memory read/write vulnerability in Bytecode Alliance Wasmtime versions 32.0.0 through 36.0.6, 42.0.0-42.0.1, a
Wasmtime is a standalone runtime for WebAssembly. Rated high severity (CVSS 8.8), this vulnerability is remotely exploit
Wasmtime is a standalone runtime for WebAssembly. Rated high severity (CVSS 8.8), this vulnerability is remotely exploit
Wasmtime is a standalone runtime for WebAssembly. Rated high severity (CVSS 8.6), this vulnerability is remotely exploit
Wasmtime's HTTP header handling in the wasmtime-wasi-http crate crashes when processing excessive header fields, allowin
EUVD-2026-140223
GHSA-65jx-qh3r-c8m8
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB