# CVE-2026-90648: Memory corruption in wabt

> A missing calloc check in wasm2c allows sandbox escape and arbitrary code execution on 32-bit systems or under memory pressure, affecting applications like Firefox.

- **Severity:** High 7.1 (`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`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 12 Sep 2026
- **Updated:** 23 Oct 2026
- **Also known as:** DEBIAN-CVE-2026-90648, GHSA-7jjw-49wp-pr5h, UBUNTU-CVE-2026-90648

## What is CVE-2026-90648?

CVE-2026-90648 is a high-severity memory corruption vulnerability in WebAssembly wabt, published on 12 Sep 2026. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

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).

Weakness: CWE-252 (Unchecked Return Value)

## Which versions are affected by CVE-2026-90648?


## How do I fix CVE-2026-90648?

Apply the vendor's patch.

## Is CVE-2026-90648 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-90648 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-90648 and fix it if it is affected.

What it is: CVE-2026-90648 is a high-severity memory corruption vulnerability in WebAssembly wabt, published on 12 Sep 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-90648 exists.

Affected product: WebAssembly wabt. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-90648/ (Markdown: https://insights.sbomify.com/CVE-2026-90648/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-90648
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-90648
- OSV: https://osv.dev/vulnerability/CVE-2026-90648

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-90648/
Summaries are generated and may contain mistakes; the official description above is the record.
