# GHSA-2674-W29H-WQVJ: Abort in Wasmtime builds without the threads cargo feature

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

## Affected versions

- wasmtime (crates.io): from 39.0.0, fixed in 48.0.9
- wasmtime (crates.io): from 49.0.0, fixed in 49.0.6
- wasmtime (crates.io): from 50.0.0, fixed in 50.0.2

## Description

### Summary

When the `wasmtime` crate is built without its `threads` cargo feature, an embedder could still enable the WebAssembly threads proposal through `Config::wasm_features`. A guest module that then executes `memory.atomic.notify`, `memory.atomic.wait32` or `memory.atomic.wait64` makes compiled code call a runtime function that such builds don't implement, which aborts the host process.

### Details

Without the `threads` cargo feature, Wasmtime disables the threads proposal by default, but `Config::wasm_features(WasmFeatures::THREADS, true)` turned it back on and `Engine::new` accepted that configuration. Under this configuration `memory.atomic.notify`, `memory.atomic.wait32` and `memory.atomic.wait64` are implemented by runtime functions that only exist with the `threads` cargo feature. Without the Cargo feature, these functions are stubs that panic, and because they are called directly from compiled code the panic cannot unwind, so the process aborts.

Wasmtime now rejects enabling the threads proposal when the `threads` cargo feature is disabled: `Engine::new` returns an error.

### Impact

Only embeddings that build the `wasmtime` crate with `default-features = false`, without the `threads` feature, and then enable the threads proposal through `Config::wasm_features` are affected. In affected builds, a guest module can abort the host process. 

Embedders can work around the issue by not enabling `WasmFeatures::THREADS` in builds without the `threads` cargo feature, or by enabling the `threads` cargo feature.

## References

- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-2674-w29h-wqvj

Page: https://cve.now/GHSA-2674-W29H-WQVJ

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