Type Confusion in Wasmtime - CVE-2024-30266

 

Type Confusion in Wasmtime - CVE-2024-30266

Published: April 2, 2024 / Updated: April 23, 2026


Vulnerability identifier: #VU127036
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2024-30266
CWE-ID: CWE-843
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: Bytecode Alliance
Affected software:
Wasmtime

Detailed vulnerability description

The vulnerability allows a local user to cause a denial of service.

The vulnerability exists due to improper handling of type mismatches in element segments in Wasmtime table instruction handling when executing a crafted WebAssembly module that issues a table.* instruction using a dropped element segment with an externref-typed table. A local user can execute a specially crafted WebAssembly module to cause a denial of service.

The issue requires the reference-types WebAssembly feature to be enabled, and toolchains are not known to generate the triggering pattern by default.


How to mitigate CVE-2024-30266

Install security update from vendor's website.

Sources