Read the docs
TI-2024-32038 Aliases CVE-2024-47763GHSA-q8hx-mm92-4wvg

Wasmtime runtime crash when combining tail calls with trapping imports

Priority LOW 24CWE-670Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-617.

Summary

Wasmtime is an open source runtime for WebAssembly. Wasmtime's implementation of WebAssembly tail calls combined with stack traces can result in a runtime crash in certain WebAssembly modules. The runtime crash may be undefined behavior if Wasmtime was compiled with Rust 1.80 or prior. The runtime crash is a deterministic process abort when Wasmtime is compiled with Rust 1.81 and later. WebAssembly tail calls are a proposal which relatively recently reached stage 4 in the standardization process. Wasmtime first enabled support for tail calls by default in Wasmtime 21.0.0, although that release contained a bug where it was only on-by-default for some configurations. In Wasmtime 22.0.0 tail calls were enabled by default for all configurations. The specific crash happens when an exported function in a WebAssembly module (or component) performs a `return_call` (or `return_call_indirect` or `return_call_ref`) to an imported host function which captures a stack trace (for example, the host function raises a trap). In this situation, the stack-walking code previously assumed there was always at least one WebAssembly frame on the stack but with tail calls that is no longer true. With the tail-call proposal it's possible to have an entry trampoline appear as if it directly called the exit trampoline. This situation triggers an internal assert in the stack-walking code which raises a Rust `panic!()`. When Wasmtime is compiled with Rust versions 1.80 and prior this means that an `extern "C"` function in Rust is raising a `panic!()`. This is technically undefined behavior and typically manifests as a process abort when the unwinder fails to unwind Cranelift-generated frames. When Wasmtime is compiled with Rust versions 1.81 and later this panic becomes a deterministic process abort. Overall the impact of this issue is that this is a denial-of-service vector where a malicious WebAssembly module or component can cause the host to crash. There is no other impact at this time other than availability of a service as the result of the crash is always a crash and no more. This issue was discovered by routine fuzzing performed by the Wasmtime project via Google's OSS-Fuzz infrastructure. We have no evidence that it has ever been exploited by an attacker in the wild. All versions of Wasmtime which have tail calls enabled by default have been patched: * 21.0.x - patched in 21.0.2 * 22.0.x - patched in 22.0.1 * 23.0.x - patched in 23.0.3 * 24.0.x - patched in 24.0.1 * 25.0.x - patched in 25.0.2. Wasmtime versions from 12.0.x (the first release with experimental tail call support) to 20.0.x (the last release with tail-calls off-by-default) have support for tail calls but the support is disabled by default. These versions are not affected in their default configurations, but users who explicitly enabled tail call support will need to either disable tail call support or upgrade to a patched version of Wasmtime. The main workaround for this issue is to disable tail support for tail calls in Wasmtime, for example with `Config::wasm_tail_call(false)`. Users are otherwise encouraged to upgrade to patched versions.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00245 15th percentileScored 2026-11-07
Fix Fixed wasmtime (bytecodealliance): 21.0.2, 22.0.1, 23.0.3 +2wasmtime (crates.io): 21.0.2, 22.0.1, 23.0.3 +2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
bytecodealliancewasmtime21.0.0 to before 21.0.2; 22.0.0 to before 22.0.1; 23.0.0 to before 23.0.3; 24.0.0 to before 24.0.1; 25.0.0 to before 25.0.221.0.2, 22.0.1, 23.0.3, 24.0.1, 25.0.2Patch availableCNA
—wasmtime (crates.io)12.0.0 to before 21.0.221.0.2Patch availableGHSA-q8hx-mm92-4wvg
—wasmtime (crates.io)22.0.0 to before 22.0.122.0.1Patch availableGHSA-q8hx-mm92-4wvg
—wasmtime (crates.io)23.0.0 to before 23.0.323.0.3Patch availableGHSA-q8hx-mm92-4wvg
—wasmtime (crates.io)24.0.0 to before 24.0.124.0.1Patch availableGHSA-q8hx-mm92-4wvg
—wasmtime (crates.io)25.0.0 to before 25.0.225.0.2Patch availableGHSA-q8hx-mm92-4wvg
  • wasmtime Vendorbytecodealliance Affected 21.0.0 to before 21.0.2; 22.0.0 to before 22.0.1; 23.0.0 to before 23.0.3; 24.0.0 to before 24.0.1; 25.0.0 to before 25.0.2 Fixed in 21.0.2, 22.0.1, 23.0.3, 24.0.1, 25.0.2 Patch available CNA
  • wasmtime (crates.io) Vendor— Affected 12.0.0 to before 21.0.2 Fixed in 21.0.2 Patch available GHSA-q8hx-mm92-4wvg
  • wasmtime (crates.io) Vendor— Affected 22.0.0 to before 22.0.1 Fixed in 22.0.1 Patch available GHSA-q8hx-mm92-4wvg
  • wasmtime (crates.io) Vendor— Affected 23.0.0 to before 23.0.3 Fixed in 23.0.3 Patch available GHSA-q8hx-mm92-4wvg
  • wasmtime (crates.io) Vendor— Affected 24.0.0 to before 24.0.1 Fixed in 24.0.1 Patch available GHSA-q8hx-mm92-4wvg
  • wasmtime (crates.io) Vendor— Affected 25.0.0 to before 25.0.2 Fixed in 25.0.2 Patch available GHSA-q8hx-mm92-4wvg

CPE configurations NVD · 9

CPEVersionsRoleVendor
cpe:2.3:a:bytecodealliance:wasmtime:21.0.0:*:*:*:*:rust:*:*21.0.0Vulnerablebytecodealliance
cpe:2.3:a:bytecodealliance:wasmtime:21.0.1:*:*:*:*:rust:*:*21.0.1Vulnerablebytecodealliance
cpe:2.3:a:bytecodealliance:wasmtime:22.0.0:*:*:*:*:rust:*:*22.0.0Vulnerablebytecodealliance
cpe:2.3:a:bytecodealliance:wasmtime:23.0.0:*:*:*:*:rust:*:*23.0.0Vulnerablebytecodealliance
cpe:2.3:a:bytecodealliance:wasmtime:23.0.1:*:*:*:*:rust:*:*23.0.1Vulnerablebytecodealliance
cpe:2.3:a:bytecodealliance:wasmtime:23.0.2:*:*:*:*:rust:*:*23.0.2Vulnerablebytecodealliance
cpe:2.3:a:bytecodealliance:wasmtime:24.0.0:*:*:*:*:rust:*:*24.0.0Vulnerablebytecodealliance
cpe:2.3:a:bytecodealliance:wasmtime:25.0.0:*:*:*:*:rust:*:*25.0.0Vulnerablebytecodealliance
cpe:2.3:a:bytecodealliance:wasmtime:25.0.1:*:*:*:*:rust:*:*25.0.1Vulnerablebytecodealliance
  • cpe:2.3:a:bytecodealliance:wasmtime:21.0.0:*:*:*:*:rust:*:* Versions 21.0.0 Vulnerable ·bytecodealliance
  • cpe:2.3:a:bytecodealliance:wasmtime:21.0.1:*:*:*:*:rust:*:* Versions 21.0.1 Vulnerable ·bytecodealliance
  • cpe:2.3:a:bytecodealliance:wasmtime:22.0.0:*:*:*:*:rust:*:* Versions 22.0.0 Vulnerable ·bytecodealliance
  • cpe:2.3:a:bytecodealliance:wasmtime:23.0.0:*:*:*:*:rust:*:* Versions 23.0.0 Vulnerable ·bytecodealliance
  • cpe:2.3:a:bytecodealliance:wasmtime:23.0.1:*:*:*:*:rust:*:* Versions 23.0.1 Vulnerable ·bytecodealliance
  • cpe:2.3:a:bytecodealliance:wasmtime:23.0.2:*:*:*:*:rust:*:* Versions 23.0.2 Vulnerable ·bytecodealliance
  • cpe:2.3:a:bytecodealliance:wasmtime:24.0.0:*:*:*:*:rust:*:* Versions 24.0.0 Vulnerable ·bytecodealliance
  • cpe:2.3:a:bytecodealliance:wasmtime:25.0.0:*:*:*:*:rust:*:* Versions 25.0.0 Vulnerable ·bytecodealliance
  • cpe:2.3:a:bytecodealliance:wasmtime:25.0.1:*:*:*:*:rust:*:* Versions 25.0.1 Vulnerable ·bytecodealliance

Remediation

  • Fix · CNA wasmtime (bytecodealliance) Fixed in 21.0.2, 22.0.1, 23.0.3, 24.0.1, 25.0.2
  • Fix · GHSA-q8hx-mm92-4wvg wasmtime (crates.io) Fixed in 21.0.2 Advisory →
  • Fix · GHSA-q8hx-mm92-4wvg wasmtime (crates.io) Fixed in 22.0.1 Advisory →
  • Fix · GHSA-q8hx-mm92-4wvg wasmtime (crates.io) Fixed in 23.0.3 Advisory →
  • Fix · GHSA-q8hx-mm92-4wvg wasmtime (crates.io) Fixed in 24.0.1 Advisory →
  • Fix · GHSA-q8hx-mm92-4wvg wasmtime (crates.io) Fixed in 25.0.2 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-47763
  2. 2026-10-03 Alias added: GHSA-q8hx-mm92-4wvg

References

  • TI-2026-21632 Wasmtime is vulnerable to panic when dropping a `[Typed]Func::call_async` future CVSS 4.0MEDIUM 6.9
  • TI-2023-11636 Guest-controlled out-of-bounds read/write on x86_64 in wasmtime CVSS 3.1CRITICAL 10.0
  • TI-2022-18765 Wasmtime vulnerable to data leakage between instances in the pooling allocator CVSS 3.1HIGH 8.6
  • TI-2022-08604 Use after free in Wasmtime CVSS 3.1CRITICAL 9.8
  • TI-2022-18766 wasmtime_trap_code C API function has out of bounds write vulnerability CVSS 3.1CRITICAL 9.8
  • TI-2026-27209 Wasmtime with Winch compiler backend on aarch64 may allow a sandbox-escaping memory access CVSS 4.0CRITICAL 9.0
See all 40 →

Sources