Intel

AIKIDO-2026-479662

wasmtime is vulnerable to Type Confusion

Type ConfusionGHSA-cfhf-m2cr-62wj Published Oct 7, 2026

59

Medium Risk

This Affects:

RUSTwasmtime
47.0.0 - 48.0.3
Fixed in 48.0.4
49.0.0 - 49.0.1
Fixed in 49.0.2
Are you affected? Scan for Free

TL;DR

Wasmtime's validation of WebAssembly components does not correctly check tag imports on an instantiated core module, so a component can import a tag whose type is a mismatched subtype of the module's declared tag, which the WebAssembly specification forbids. A guest can use that gap to mistype the payload of an exception object, and the garbage collector then processes that payload as the declared type, corrupting the GC heap. The bug only affects guests that use the WebAssembly exceptions proposal, which is on by default, and a corrupted GC heap can cause the host to panic during unrelated operations. The fix rejects components whose tag imports use an incompatible subtype during validation.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run untrusted WebAssembly components with the WebAssembly exceptions proposal enabled.

Background info

wasmtime is vulnerable to Type Confusion in versions 47.0.0 - 48.0.3 and 49.0.0 - 49.0.1.

How to fix this

Upgrade the wasmtime library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform