CVE-2026-54913

WebAssembly Micro Runtime: Missing `ref.null` heap-type validation in `load_init_expr` leaks host stack memory to the WebAssembly guest

Published Nov 5, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
WebAssembly Micro Runtime (WAMR) is a lightweight standalone WebAssembly (Wasm) runtime. Prior to 2.4.5, load_init_expr in core/iwasm/interpreter/wasm_loader.c accepts a non-reference heap-type byte for ref.null when WASM_ENABLE_GC=0, while the local WASMValue cur_value union is not zero-initialized and setting ref_index writes only part of it. A crafted module can declare an i64, f64, or v128 global initialized through the invalid ref.null form, causing push_const_expr_stack and the later global initialization path to copy uninitialized host-stack bytes into a value readable by the guest. The classic and fast interpreters are affected in the default no-GC configuration; the GC-enabled path validates heap types. The disclosure is four bytes for i64 or f64 globals and up to twelve bytes for each v128 global. This issue is fixed in version 2.4.5.

Analysis

AI-generated

Technical impact

The vulnerability in WebAssembly Micro Runtime (WAMR) allows a crafted module to declare a global with an invalid ref.null form, which leaks uninitialized host‑stack bytes into the WebAssembly guest. The leaked bytes expose sensitive host memory data to the guest, constituting an information‑disclosure flaw, as defined by CWE-457.

Affected Systems

Bytecodealliance’s WAMR is affected in all releases prior to 2.4.5 when the runtime is built with the default no‑GC configuration (WASM_ENABLE_GC=0). The bug does not affect the GC‑enabled path. Users running earlier versions of WAMR should be aware that i64, f64, or v128 globals initialized via the invalid ref.null form could expose four to twelve bytes of host memory.

Risk and Exploitability

The CVSS score of 6.9 indicates a moderate severity. The EPSS score is not available, so the exploitation probability is unknown, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires a client who can supply a specially crafted WebAssembly module that uses the vulnerable ref.null form; thus, the attackable surface is limited to systems that load untrusted modules with the default runtime configuration.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade WAMR to version 2.4.5 or later where the issue is fixed.
  • If an upgrade is not feasible, enable GC support (set WASM_ENABLE_GC=1) so that heap‑type validation applies and the vulnerability is mitigated.
  • As a temporary measure, avoid deploying modules that use the ref.null form for global initialization and monitor for anomalous memory accesses.

Generated by OpenCVE AI on November 5, 2026 at 19:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Bytecodealliance
Bytecodealliance wasm-micro-runtime
Vendors & Products Bytecodealliance
Bytecodealliance wasm-micro-runtime
Type Values Removed Values Added
Description WebAssembly Micro Runtime (WAMR) is a lightweight standalone WebAssembly (Wasm) runtime. Prior to 2.4.5, load_init_expr in core/iwasm/interpreter/wasm_loader.c accepts a non-reference heap-type byte for ref.null when WASM_ENABLE_GC=0, while the local WASMValue cur_value union is not zero-initialized and setting ref_index writes only part of it. A crafted module can declare an i64, f64, or v128 global initialized through the invalid ref.null form, causing push_const_expr_stack and the later global initialization path to copy uninitialized host-stack bytes into a value readable by the guest. The classic and fast interpreters are affected in the default no-GC configuration; the GC-enabled path validates heap types. The disclosure is four bytes for i64 or f64 globals and up to twelve bytes for each v128 global. This issue is fixed in version 2.4.5.
Title WebAssembly Micro Runtime: Missing `ref.null` heap-type validation in `load_init_expr` leaks host stack memory to the WebAssembly guest
Weaknesses CWE-457
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-457

    Use of Uninitialized Variable

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 9, 2026, 10:27 PM
Reserved
Jun 16, 2026, 1:49 PM
Status
Deferred
Published
Nov 5, 2026, 6:17 PM
Modified
Nov 12, 2026, 10:18 PM