Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessServe malicious font/audio/XML content
-
DeliveryTrigger funcref table calloc() failure in wasm2c sandbox
-
ExploitBounds check passes against non-zero table->size with NULL table->data
-
ExecutionElement access computes absolute host-memory address
-
PersistOverwrite host function pointer via table.set/call_indirect
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Webassembly
View allWasmtime versions before 36.0.19, and the 37.0.0 through 42.x line, can silently miscompile attacker-supplied WebAssembl
WebAssembly v1.0.29 was discovered to contain a heap overflow via the component component wabt::Node::operator. Rated hi
wasm-interp v1.0.29 was discovered to contain a heap overflow via the component std::vector<wabt::Type, std::allocator<w
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
A Denial of Service vulnerability exits in Binaryen 103 due to an assertion abort in wasm::handle_unreachable. Rated hig
wasm-interp v1.0.29 was discovered to contain an out-of-bounds read via the component OnReturnCallIndirectExpr->GetRetur
wasm-interp v1.0.29 was discovered to contain an out-of-bounds read via the component OnReturnCallExpr->GetReturnCallDro
An issue was discovered in Binaryen 1.38.32. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitabl
An issue was discovered in Binaryen 1.38.32. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitabl
wasm::WasmBinaryBuilder::readUserSection in wasm-binary.cpp in Binaryen 1.38.22 triggers an attempt at excessive memory
In Binaryen 1.38.22, there is a use-after-free problem in wasm::WasmBinaryBuilder::visitCall in wasm-binary.cpp. Rated m
A NULL pointer dereference was discovered in wasm::SExpressionWasmBuilder::parseExpression in wasm-s-parser.cpp in Binar
EUVD-2026-76923
GHSA-7jjw-49wp-pr5h
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB