Skip to main content

Wasmtime CVE-2026-140419

| EUVDEUVD-2026-140224 MEDIUM
Out-of-bounds Read (CWE-125)
2026-12-01 VulnCheck GHSA-h97j-mmm9-r4rx
5.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Run untrusted Wasm guest in host
  2. Delivery
    Compiled code reads stale null GC heap base
  3. Exploit
    Call host import returning GC reference
  4. Execution
    Execute ref.test/downcast on reference
  5. Persist
    Load from low host memory hits unmapped page
  6. Impact
    Host process aborts (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires all of: (1) the Wasm GC proposal enabled - the advisory states you are not affected if it is disabled; (2) the host embedding Wasmtime must expose an imported function that allocates and returns GC objects to the guest - if no such import is exposed, you are not affected; and (3) an affected version (47.0.0-48.0.8, 49.0.0-49.0.5, or 50.0.0-50.0.1). The guest must obtain a host-provided GC reference and perform a collector-agnostic operation such as ref.test or a downcast on it. The bug surfaces in common/default configurations where the GC heap is resized in place, allowing the stale null base load to be deduplicated/hoisted. Limiting factors: the attacker must already be able to execute guest Wasm code (local, PR:L), high attack complexity with a specific attack requirement (AT:P), and the two configuration preconditions above make default-safe deployments (GC disabled or no GC-returning host import) immune.

Impact

This is a medium-severity denial-of-service issue, not a critical one, and the signals are internally consistent. The vendor CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:L/UI:N) with impact limited to VA:H (availability only; VC:N, VI:N) matches the advisory: a guest can only crash the host process, not read or corrupt memory. There is no CISA KEV listing and no EPSS score in the supplied data, and no public exploit reference was provided - only vendor/VulnCheck advisories describing the flaw. The vuln.today decision label is 'this_month' (not act_now/emergency), which aligns with the moderate CVSS and absence of exploitation evidence. The barriers are substantial: local vector, high attack complexity, a present attack requirement (AT:P), low-but-nonzero privilege (the attacker must already be able to run guest Wasm), and two non-trivial configuration preconditions. Real priority is moderate and targeted: it matters chiefly to operators who run untrusted Wasm guests on affected Wasmtime versions with the GC proposal enabled and a host import that returns GC objects. No signals are strongly conflicting; the main gaps are missing EPSS and the absence of any confirmed exploit.

Exploit ScenarioDerived

On a host that embeds an affected Wasmtime version with the Wasm GC proposal enabled and exposes an imported host function that allocates and returns GC references, a malicious or compromised guest module requests such a reference and then performs a collector-agnostic operation (e.g. ref.test) on it. Because compiled code reused a stale null GC heap base pointer, this triggers a load in the first ~4GiB of host memory that most likely hits an unmapped page and aborts the host process, denying service. No public exploit was identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available

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

Alert me

AnalysisAIv1 – Dec 02, 2026

Denial of service in Wasmtime 47.x, 49.x and 50.x: a Wasm guest that runs a collector-agnostic GC operation such as ref.test or a downcast on a GC reference returned by an imported host function can reuse a stale null GC heap base pointer and trigger host loads in low memory, aborting the host process. Only deployments that enable the Wasm GC proposal AND expose a host import that allocates and returns GC objects to the guest are affected; guests cannot read the loaded bytes, only force the loads (CWE-125, assessed CVSS:3.1 AV:L/AC:H/PR:L/UI:N/C:N/I:N/A:H). No public exploit code and no CISA KEV entry are associated with this issue at time of analysis, and the vendor has released fixed versions 48.0.9, 49.0.6 and 50.0.2.

RemediationAI

Vendor-released patches exist: upgrade Wasmtime to 48.0.9 (or later in the 48 branch), 49.0.6 (or later in the 49 branch), or 50.0.2 (or later in the 50 branch) as specified in advisory GHSA-43j2-gcp4-m22g (https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-43j2-gcp4-m22g). The advisory states two configurations that are not affected and can serve as interim mitigations where upgrading must be staged: disabling the Wasm GC proposal removes the code paths involved, at the cost of losing GC and typed-reference-based guest functionality, and not exposing any imported host function that allocates and returns GC objects to the guest removes the trigger, at the cost of the host functionality those imports provide. The vendor's guidance frames the version update as the complete fix; no other workaround is described in the available sources. The issue is rated medium severity (assessed CVSS:3.1 AV:L/AC:H/PR:L/UI:N/C:N/I:N/A:H) and is not listed in CISA KEV, so remediation can follow the normal monthly patch cycle (vuln.today decision label: this_month) rather than emergency change procedures.

Affected VersionsENISA

wasmtime 47.0.0 <48.0.9
wasmtime 49.0.0 <49.0.6
wasmtime 50.0.0 <50.0.2

Affected Packages

cargo wasmtime fix: 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 allocates a Store's GC heap lazily; until it is allocated, the GC heap base pointer is null (technically NonNull::<u8>::dangling(), i.e. address 1). When a module is marked needs_gc_heap, the heap is allocated before instantiation, and that flag is normally set during compilation when a GcCompiler is constructed for GC allocation or field/array access operations such as struct.new or array.get. A small set of collector-agnostic operations, such as ref.test, only touch the common GC header word shared by all of Wasmtime's collectors, so translating them never constructs a GcCompiler and never sets needs_gc_heap. In common and default configurations the GC heap does not move in host memory (it is resized in place through the virtual memory system), so the base-pointer load can be deduplicated by GVN and hoisted out of loops by LICM. Because the flag was not set, compiled code could load the null base pointer before the heap existed, call an imported host function that allocates an object (allocating the GC heap) and returns it, then run ref.test on that object using the stale null base - interpreting the reference relative to address 1 and driving loads anywhere in the first ~4GiB of host memory. The guest cannot read or inspect the loaded bytes and can only compare them against a small set of fixed values, so the realistic outcome is an out-of-bounds read (CWE-125) that lands on an unmapped page and aborts the process rather than an information leak.

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 5.7 MEDIUM
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 4.7 MEDIUM

Attacker runs guest Wasm (AV:L, PR:L); non-default GC proposal plus a GC-returning host import make it AC:H; only the host process crashes, so A:H and C:N/I:N.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

Lifecycle Timeline

1
Patch available
Dec 01, 2026 - 16:02 EUVD

DescriptionCVE.org

Wasmtime 47.0.0 before 48.0.9, 49.0.0 before 49.0.6, and 50.0.0 before 50.0.2 does not set needs_gc_heap for collector-agnostic GC operations such as ref.test, so compiled code can reuse a stale null GC heap base pointer. A Wasm guest that tests or downcasts GC references returned by an imported host function can trigger loads in low host memory, aborting the host process.

Threat Intelligence Overview

Prevalence
Medium
popular standalone WebAssembly runtime, but niche GC-feature exposure required
Data Quality
4 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 N/A
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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

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