CVE-2026-54914

WebAssembly Micro Runtime: Heap Buffer Overflow in WAMR WASI poll_oneoff Output Buffer

Published Nov 5, 2026 CVSS 4.0 · 8.3 High EPSS < 1% KEV · Not listed
Description
WebAssembly Micro Runtime (WAMR) is a lightweight standalone WebAssembly (Wasm) runtime. Prior to 2.4.5, wasi_poll_oneoff in core/iwasm/libraries/libc-wasi/libc_wasi_wrapper.c validates the output pointer for only one wasi_event_t, while wasmtime_ssp_poll_oneoff in core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/posix.c can write as many events as the guest-controlled nsubscriptions value. A crafted guest module can provide multiple subscriptions that produce events while positioning an output region large enough for only one event, causing a later out[nevents] write to cross the validated Wasm linear-memory boundary into adjacent host heap memory. The overwrite contains partly attacker-controlled event data and can reliably crash the host process, with further confidentiality or integrity consequences depending on heap layout. This issue is fixed in version 2.4.5.

Analysis

AI-generated

Technical impact

The vulnerability in WebAssembly Micro Runtime (WAMR) arises from insufficient validation of the output pointer used by wasi_poll_oneoff. A guest module can declare more subscriptions than the runtime checks, leading to a heap buffer overflow that writes beyond a single wasi_event_t into adjacent host heap memory. This overwrite contains partly attacker‑controlled data and can reliably crash the host process; depending on the heap layout it may also lead to confidentiality or integrity violations. The flaw is a classic CWE‑122 unchecked buffer overflow.

Affected Systems

The issue affects bytecodealliance’s wasm‑micro‑runtime across all releases prior to version 2.4.5. Versions 2.4.5 and later incorporate the fix that validates the output buffer size correctly.

Risk and Exploitability

With a CVSS score of 8.3 the vulnerability is considered high severity. The EPSS score is not available and the vulnerability is not listed in CISA KEV, suggesting no widespread exploitation has been reported yet. An attacker must supply a crafted WebAssembly module that requests multiple subscriptions; the attack surface is limited to environments where untrusted modules are loaded into the runtime. Successful exploitation would corrupt host heap memory, crash the process, and potentially compromise confidentiality or integrity depending on the surrounding memory state.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade WebAssembly Micro Runtime to version 2.4.5 or later to apply the validated buffer check.
  • If an upgrade is not immediately possible, run the runtime in a tightly controlled sandbox or container that isolates it from the host heap and restricts untrusted module execution.
  • Apply the patch from the official commits (e.g., 1f98fb01d09b2ef5e49dc0be2e6006f962fd87f1) to the source code and rebuild, ensuring the output buffer validation is in place.

Generated by OpenCVE AI on November 5, 2026 at 19:27 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': 'none', '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, wasi_poll_oneoff in core/iwasm/libraries/libc-wasi/libc_wasi_wrapper.c validates the output pointer for only one wasi_event_t, while wasmtime_ssp_poll_oneoff in core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/posix.c can write as many events as the guest-controlled nsubscriptions value. A crafted guest module can provide multiple subscriptions that produce events while positioning an output region large enough for only one event, causing a later out[nevents] write to cross the validated Wasm linear-memory boundary into adjacent host heap memory. The overwrite contains partly attacker-controlled event data and can reliably crash the host process, with further confidentiality or integrity consequences depending on heap layout. This issue is fixed in version 2.4.5.
Title WebAssembly Micro Runtime: Heap Buffer Overflow in WAMR WASI poll_oneoff Output Buffer
Weaknesses CWE-122
References
Metrics cvssV4_0

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

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow

Sources

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