Skip to main content

Wasmtime CVE-2026-140420

| EUVDEUVD-2026-140223 MEDIUM
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-12-01 VulnCheck GHSA-65jx-qh3r-c8m8
6.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Run malicious guest on vulnerable embedding
  2. Delivery
    Obtain guest-reachable AsyncWriteStream output
  3. Exploit
    Loop output-stream.write with empty lists
  4. Execution
    Queue unbudgeted zero-length buffers on host heap
  5. Impact
    Exhaust 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

wasmtime 49.0.0 <49.0.6
wasmtime 37.0.0 <48.0.9
wasmtime 0 <36.0.21
wasmtime 50.0.0 <50.0.2

Affected Packages

cargo wasmtime fix: 36.0.21, 48.0.9, 49.0.6, 50.0.2

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

Vendor (VulnCheck) PRIMARY 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
vuln.today AI 6.5 MEDIUM

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

3.1 AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
High

Lifecycle Timeline

2
Patch available
Dec 01, 2026 - 16:02 EUVD
CVSS changed
Dec 01, 2026 - 15:22 NVD
5.8 (MEDIUM) 6.9 (MEDIUM)

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

EPSS Score
0.4%
Top 64% exploitable
Prevalence
Medium
popular WebAssembly runtime, but only embedders using wasip2 AsyncWriteStream path affected
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2026-115893 CRITICAL POC
9.9 Oct 23

Sandbox escape in Wasmtime on aarch64 lets a user-supplied WebAssembly module redirect an oversized br_table branch to a

CVE-2026-115889 CRITICAL POC
9.9 Oct 23

Wasmtime versions before 36.0.19, and the 37.0.0 through 42.x line, can silently miscompile attacker-supplied WebAssembl

CVE-2023-26489 CRITICAL
9.9 Mar 08

wasmtime is a fast and secure runtime for WebAssembly. Rated critical severity (CVSS 9.9), this vulnerability is remotel

CVE-2022-39394 CRITICAL
9.8 Nov 10

Wasmtime is a standalone runtime for WebAssembly. Rated critical severity (CVSS 9.8), this vulnerability is remotely exp

CVE-2022-24791 CRITICAL
9.8 Mar 31

Wasmtime is a standalone JIT-style runtime for WebAssembly, using Cranelift. Rated critical severity (CVSS 9.8), this vu

CVE-2024-30266 MEDIUM POC
5.5 Apr 04

wasmtime is a runtime for WebAssembly. Rated medium severity (CVSS 5.5), this vulnerability is low attack complexity. Pu

CVE-2026-34987 CRITICAL
9.0 Apr 09

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

CVE-2026-34971 CRITICAL
9.0 Apr 09

Arbitrary memory read/write vulnerability in Bytecode Alliance Wasmtime versions 32.0.0 through 36.0.6, 42.0.0-42.0.1, a

CVE-2023-30624 HIGH
8.8 Apr 27

Wasmtime is a standalone runtime for WebAssembly. Rated high severity (CVSS 8.8), this vulnerability is remotely exploit

CVE-2022-31146 HIGH
8.8 Jul 21

Wasmtime is a standalone runtime for WebAssembly. Rated high severity (CVSS 8.8), this vulnerability is remotely exploit

CVE-2022-39393 HIGH
8.6 Nov 10

Wasmtime is a standalone runtime for WebAssembly. Rated high severity (CVSS 8.6), this vulnerability is remotely exploit

CVE-2026-27572 HIGH
7.5 Feb 24

Wasmtime's HTTP header handling in the wasmtime-wasi-http crate crashes when processing excessive header fields, allowin

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy