CVE-2026-54912

WAMR fast interpreter loader heap buffer overflow via constant deduplication mismatch

Published Nov 5, 2026 CVSS 4.0 · 8.8 High EPSS < 1% KEV · Not listed
Description
WebAssembly Micro Runtime (WAMR) is a lightweight standalone WebAssembly (Wasm) runtime. Prior to 2.4.5, the two-pass fast interpreter loader in core/iwasm/interpreter/wasm_loader.c can make inconsistent constant-table decisions between the sizing pass and the emitting pass. After duplicate constants inflate the first pass beyond the constant-slot limit, wasm_loader_get_const_offset emits later constants inline, but the between-pass sort and deduplication reduces the table so the second pass can choose table references and cause reserve_block_ret to emit additional copy operands that were not included in code_compiled_peak_size. A crafted module can therefore make the second pass write partially attacker-controlled compiled-code data beyond the heap buffer allocated from the first pass's size calculation during wasm_runtime_load, before guest code executes. This can corrupt host heap metadata and deterministically crash the process, causing denial of service; further consequences depend on the host application's heap layout. Builds using WAMR_BUILD_FAST_INTERP=1 are affected; disabling the fast interpreter avoids the vulnerable loader. This issue is fixed in version 2.4.5.

Analysis

AI-generated

Technical impact

The WebAssembly Micro Runtime (WAMR) contains a two‑pass fast interpreter loader whose sizing pass and emitting pass can disagree on the number of constants. When duplicate constants inflate the sizing pass beyond the constant‑slot limit, the emitting pass later emits inline constants and reduces the table size through sorting and deduplication. Consequently, the loader writes beyond the originally allocated heap buffer, corrupting host heap metadata and deterministically crashing the process. This classic buffer overflow (CWE‑787) results in denial of service; further damage depends on the host application’s heap layout.

Affected Systems

Bytecode Alliance’s WebAssembly Micro Runtime is affected. All releases prior to version 2.4.5 that are compiled with the fast interpreter enabled (WAMR_BUILD_FAST_INTERP=1) contain the flaw. The vulnerability is fixed in release 2.4.5, and disabling the fast interpreter also removes the risk.

Risk and Exploitability

The CVSS score of 8.8 classifies this flaw as a high‑severity denial‑of‑service vulnerability. The EPSS estimate is not available and the flaw is not listed in the CISA KEV catalog, which neither increases nor reduces the perceived risk. Based on the description, it is inferred that an attacker can trigger the overflow by crafting a malicious WebAssembly module that is subsequently loaded by a host application employing the vulnerable fast interpreter. This inference is drawn from the fact that the flaw occurs during module loading, though the input does not explicitly state which transport or interface the attacker would use. If such a module can reach the vulnerable host, an attacker would only need to load it, and the resulting heap corruption would cause a deterministic crash of the host process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade WAMR to version 2.4.5 or later.
  • Disable the fast interpreter by removing or setting WAMR_BUILD_FAST_INTERP=0 during the build.
  • Validate incoming WebAssembly modules or restrict module sources to trusted content to prevent malicious modules from reaching the vulnerable loader.

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': 'total'}, '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, the two-pass fast interpreter loader in core/iwasm/interpreter/wasm_loader.c can make inconsistent constant-table decisions between the sizing pass and the emitting pass. After duplicate constants inflate the first pass beyond the constant-slot limit, wasm_loader_get_const_offset emits later constants inline, but the between-pass sort and deduplication reduces the table so the second pass can choose table references and cause reserve_block_ret to emit additional copy operands that were not included in code_compiled_peak_size. A crafted module can therefore make the second pass write partially attacker-controlled compiled-code data beyond the heap buffer allocated from the first pass's size calculation during wasm_runtime_load, before guest code executes. This can corrupt host heap metadata and deterministically crash the process, causing denial of service; further consequences depend on the host application's heap layout. Builds using WAMR_BUILD_FAST_INTERP=1 are affected; disabling the fast interpreter avoids the vulnerable loader. This issue is fixed in version 2.4.5.
Title WAMR fast interpreter loader heap buffer overflow via constant deduplication mismatch
Weaknesses CWE-787
References
Metrics cvssV4_0

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 5, 2026, 6:44 PM
Reserved
Jun 16, 2026, 1:49 PM
Status
Awaiting Analysis
Published
Nov 5, 2026, 6:17 PM
Modified
Nov 12, 2026, 10:18 PM