Skip to main content

wabt wasm2c CVE-2026-90648

| EUVDEUVD-2026-76923 HIGH
Unchecked Return Value (CWE-252)
2026-09-12 mitre GHSA-7jjw-49wp-pr5h
7.1
CVSS 4.0 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Serve malicious font/audio/XML content
  2. Delivery
    Trigger funcref table calloc() failure in wasm2c sandbox
  3. Exploit
    Bounds check passes against non-zero table->size with NULL table->data
  4. Execution
    Element access computes absolute host-memory address
  5. Persist
    Overwrite host function pointer via table.set/call_indirect
  6. Impact
    Execute arbitrary code outside RLBox sandbox

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Return value checking
Exploitation Conditions

Exploitation requires the funcref table calloc() in wasm_rt_allocate_funcref_table() to fail. This failure condition is met on 32-bit host platforms (natural address-space exhaustion), when the process is subject to an RLIMIT_AS resource limit, when the Linux kernel is configured with vm.overcommit_memory=2 (strict overcommit disabled), or under genuine system memory pressure. Explicitly NOT exploitable on 64-bit Linux with default overcommit settings (vm.overcommit_memory=0 or 1), where calloc() succeeds and the NULL-pointer path is never reached. For Firefox, attacker input must reach one of the five wasm2c-sandboxed libraries: Graphite (font rendering), Hunspell (spell check), Ogg (audio), Expat (XML), or Woff2 (web fonts) - all of which process untrusted external content in normal browser operation. No authentication is required; exploitation does not require user interaction beyond delivery of the malicious content, but the memory-allocation failure condition must be present in the target environment.

Impact

The CVSS 4.0 vector AV:L/AC:L/AT:P correctly identifies that exploitation is local (within the host process address space) but requires specific attack conditions (AT:P): the funcref table calloc() must fail, which occurs on 32-bit host platforms, under RLIMIT_AS address-space restrictions, with vm.overcommit_memory=2, or under genuine system memory pressure. On 64-bit Linux with default overcommit settings - the dominant server and desktop deployment scenario - the allocation succeeds and the defect is never triggered, which substantially reduces real-world exposure relative to the high potential impact. However, 32-bit deployments remain in active use in embedded environments and legacy client systems, and the availability of a named public exploit ('table flip' at trustsig-eu/wasm2c-tableflip) significantly raises urgency. The Mozilla Bugzilla entry (bug 1827704) confirms Firefox is a realistic target: untrusted font, media, or XML input processed on a 32-bit Firefox instance - or one subject to RLIMIT_AS - can escape the RLBox sandbox entirely. Even a mid-sized municipal IT team in boleslawiec managing legacy 32-bit browser deployments should treat this as urgent given the sandbox-escape severity and the existence of working exploit code. No KEV listing has been observed, meaning confirmed active exploitation in the wild is not yet established, but the gap between PoC availability and KEV listing may close quickly for browser-facing attack surfaces.

Exploit ScenarioDerived

An attacker serves a malicious web font or audio file crafted to exercise the funcref table path in Firefox's wasm2c-sandboxed Graphite or Ogg library. On a 32-bit browser instance - or one running under RLIMIT_AS constraints - calloc() fails silently during table initialization; subsequent table.set instructions compute absolute low-memory addresses, allowing the attacker to overwrite host function pointers and divert execution to attacker-controlled code outside the RLBox sandbox. The public proof-of-concept at trustsig-eu/wasm2c-tableflip demonstrates this escape mechanism, providing a concrete template for weaponization.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 12, 2026

Sandbox escape in wasm2c (wabt ≤ 1.0.41) allows an attacker controlling WebAssembly content to achieve arbitrary read/write of host process memory and code execution by exploiting an unchecked calloc() return value during funcref table allocation. When calloc() fails, table->data is left NULL while table->size retains the guest-declared element count, causing bounds checks to pass and element accesses to resolve to absolute low-memory addresses - fully defeating the isolation wasm2c exists to provide. Firefox's RLBox sandboxing of Graphite, Hunspell, Ogg, Expat, and Woff2 libraries is affected, and a public proof-of-concept ('table flip') is available, though exploitation requires specific memory-failure conditions to be present.

RemediationAI

No specific patched release version of wabt is confirmed in the available data; operators should monitor the upstream repository at https://github.com/WebAssembly/wabt for a fix that adds a null-return check (or an abort() call consistent with the memory allocator's existing behavior) in wasm_rt_allocate_funcref_table(). The public proof-of-concept is available at https://github.com/trustsig-eu/wasm2c-tableflip and should be used to verify whether an updated build is protected. The primary compensating control for environments that cannot immediately upgrade is to avoid running wasm2c-sandboxed processes on 32-bit host platforms or under RLIMIT_AS address-space restrictions, as these are the conditions required to trigger the allocation failure. Disabling vm.overcommit_memory=2 (reverting to the default value of 0 or 1) on affected Linux hosts removes one trigger condition but is a kernel parameter change with implications for memory-intensive workloads. For Firefox deployments, tracking the Mozilla Bugzilla entry at bugzilla.mozilla.org/show_bug.cgi?id=1827704 and applying the corresponding browser update upon release is the recommended remediation path.

Affected VersionsENISA

wabt 0 ≤1.0.41

Affected Packages

euvd wabt no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

wasm2c is a component of the WebAssembly Binary Toolkit (wabt, CPE cpe:2.3:a:webassembly:wabt:*:*:*:*:*:*:*:* through 1.0.41) that compiles WebAssembly modules to C code for use as an in-process sandboxing boundary. The root cause is CWE-252 (Unchecked Return Value): in wasm_rt_allocate_funcref_table() within wasm-rt-impl-tableops.inc, the return value of calloc() is never validated. When calloc() returns NULL due to allocation failure, table->data is set to NULL while table->size retains the WebAssembly module's declared element count. Because runtime bounds checks validate against table->size (which is nonzero), they pass for in-range indices - but with table->data = NULL, each element access computes to the address (i * sizeof(wasm_rt_funcref_t)), effectively providing read/write access to arbitrary absolute addresses in the lower address space of the host process. WebAssembly instructions table.get, table.set, and call_indirect then expose this as a full arbitrary-memory primitive leading to code execution. The wasm2c memory allocator (wasm_rt_allocate_memory) already aborts on calloc failure; the table allocator was not updated with the same defensive behavior when this code path was introduced in commit ab9e0b55 (PR #813). wasm2c is used as the sandboxing boundary by RLBox and WasmBoxC, and by Mozilla Firefox to isolate parsing of fonts (Graphite), spell-check (Hunspell), audio (Ogg), XML (Expat), and web fonts (Woff2) from the main process.

Know when Webassembly 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 (mitre) PRIMARY 7.1 HIGH
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:H/SA:H
vuln.today AI 8.1 HIGH

AV:L (in-process sandbox), AC:H for allocation-failure precondition; S:C for full sandbox escape to host; C:H added for arbitrary host-memory reads.

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

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

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

DescriptionCVE.org

wasm2c in WebAssembly wabt through 1.0.41 allows sandbox escape in some situations that primarily involve 32-bit platforms, aka a "table flip" attack. It does not check the return value of calloc() in wasm_rt_allocate_funcref_table() (wasm2c/wasm-rt-impl-tableops.inc). When the funcref table allocation fails, table->data is left NULL while table->size keeps the guest-declared element count; thus, bounds checks still pass and table element accesses resolve to absolute memory addresses (i * sizeof(wasm_rt_funcref_t)). This gives arbitrary read and write of host process memory and - via table.get, table.set, and call_indirect - arbitrary code execution, defeating the isolation that wasm2c exists to provide (a full sandbox escape). wasm2c is used as an in-process sandboxing boundary by RLBox and WasmBoxC, including in Firefox, which compiles the Graphite, Hunspell, Ogg, Expat, and Woff2 libraries via wasm2c to contain untrusted font, media, and XML input. Therefore, sandboxing in these applications is potentially affected. Exploitation requires the funcref table allocation to fail, for example under an address-space limit (RLIMIT_AS), on 32-bit hosts, with vm.overcommit_memory=2, or under memory pressure. On 64-bit Linux with default overcommit the allocation succeeds and the defect is not triggered. The wasm2c memory allocator aborts on calloc failure in the same runtime; the table allocator lacks this abort behavior. This was introduced in commit ab9e0b55 (PR #813).

Technical POC Analysis

CWE-252 (Unchecked Return Value).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

A critical flaw in Firefox's WebAssembly sandbox allows attackers to bypass browser isolation and execute arbitrary code within the browser process when users visit compromised websites, affecting all Firefox users globally. Publicly available exploit code exists, creating an immediate threat to credential confidentiality, system integrity, and corporate network security. Attackers can abuse compromised browsers to steal sensitive data or establish footholds for lateral movement into organizational infrastructure.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include disabling WebAssembly support in Firefox through enterprise group policies for high-risk users, deploying browser isolation technologies (Windows Defender Application Guard or equivalent) to contain Firefox processes, blocking untrusted WebAssembly sources through network traffic inspection and content filtering, and hardening systems with memory protection mechanisms (ASLR, DEP/XD, stack canaries) to increase exploitation difficulty. Monitor Firefox and wabt project channels actively for patch releases.

Threat Model

5 threats: Elevation of Privilege, Denial of Service, Tampering and 2 more

6-step attack chain with trust boundaries and controls

Full threat model - attack chain, trust boundaries, controls per stage and evidence - is part of the Pro and Business plans.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Medium
widely-used WebAssembly toolkit with major Firefox downstream exposure
Social Media
3
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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-27117 HIGH POC
7.8 Mar 10

WebAssembly v1.0.29 was discovered to contain a heap overflow via the component component wabt::Node::operator. Rated hi

CVE-2022-43281 HIGH POC
7.8 Oct 28

wasm-interp v1.0.29 was discovered to contain a heap overflow via the component std::vector<wabt::Type, std::allocator<w

CVE-2023-31670 HIGH POC
7.5 May 23

An issue in wasm2c 1.0.32, wasm2wat 1.0.32, wasm-decompile 1.0.32, and wasm-validate 1.0.32 allows attackers to cause a

CVE-2021-45290 HIGH POC
7.5 Dec 21

A Denial of Service vulnerability exits in Binaryen 103 due to an assertion abort in wasm::handle_unreachable. Rated hig

CVE-2022-43282 HIGH POC
7.1 Oct 28

wasm-interp v1.0.29 was discovered to contain an out-of-bounds read via the component OnReturnCallIndirectExpr->GetRetur

CVE-2022-43280 HIGH POC
7.1 Oct 28

wasm-interp v1.0.29 was discovered to contain an out-of-bounds read via the component OnReturnCallExpr->GetReturnCallDro

CVE-2019-15759 MEDIUM POC
6.5 Aug 29

An issue was discovered in Binaryen 1.38.32. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitabl

CVE-2019-15758 MEDIUM POC
6.5 Aug 29

An issue was discovered in Binaryen 1.38.32. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitabl

CVE-2019-7704 MEDIUM POC
6.5 Feb 10

wasm::WasmBinaryBuilder::readUserSection in wasm-binary.cpp in Binaryen 1.38.22 triggers an attempt at excessive memory

CVE-2019-7703 MEDIUM POC
6.5 Feb 10

In Binaryen 1.38.22, there is a use-after-free problem in wasm::WasmBinaryBuilder::visitCall in wasm-binary.cpp. Rated m

CVE-2019-7702 MEDIUM POC
6.5 Feb 10

A NULL pointer dereference was discovered in wasm::SExpressionWasmBuilder::parseExpression in wasm-s-parser.cpp in Binar

Vendor StatusVendor

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