# GHSA-RC4P-X33F-VPR2: Abort in Wasmtime builds without the gc cargo feature

- Database: GitHub
- Severity: CVSS 2.2 (Low)
- Published: 2026-11-16
- Modified: 2026-11-16

## Affected versions

- wasmtime (crates.io): from 50.0.0, through 50.0.1
- wasmtime (crates.io): from 49.0.0, through 49.0.5
- wasmtime (crates.io): from 47.0.0, through 48.0.8

## Description

### Summary

When the `wasmtime` crate is built without its `gc` Cargo feature a guest module that declares a non-final function type and performs a `call_indirect`, `ref.test`, `ref.cast` or `br_on_cast` against it makes compiled code call a runtime function that such builds don't implement, which aborts the host process.

### Details

Without the `gc` Cargo feature, Wasmtime disables GC types and exceptions by default, but the GC proposal remains at its default, enabled. That proposal allows function subtyping (`(type (sub ...))`), and checking a function subtype at runtime calls a Wasmtime builtin which is only implemented with the `gc` cargo feature. Without it, the builtin is a stub that panics, and because it is called directly from compiled code the panic cannot unwind, so the process aborts.

Wasmtime now implements this builtin in all builds, with or without the `gc` cargo feature.

### Impact

Only embeddings that build the `wasmtime` crate with `default-features = false` and without the `gc` feature are affected. In affected builds, a guest module can abort the host process with the default `Config`. Embedders can work around the issue by calling `Config::wasm_gc(false)`.

## References

- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-rc4p-x33f-vpr2

Page: https://cve.now/GHSA-RC4P-X33F-VPR2

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
