Race Condition Affecting wasmtime package, versions >=46.0.0 <46.0.2>=47.0.0 <47.0.3


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.28% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-WASMTIME-21708419
  • published25 Oct 2026
  • disclosed2 Oct 2026
  • creditUnknown

Introduced: 2 Oct 2026

NewCVE-2026-104855  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade wasmtime to version 46.0.2, 47.0.3 or higher.

Overview

Affected versions of this package are vulnerable to Race Condition in the handling of bulk WebAssembly operations such as memory.copy, array.copy, and table.grow when preemption via epochs or fuel occurs and the store's state is mutated or computation is cancelled. An attacker can cause the internal state to become inconsistent or uninitialized by triggering preemption and then mutating the store or resuming execution, potentially leading to memory corruption or segmentation faults. This is only exploitable if the embedding uses Store::epoch_deadline_callback and mutates the store during the callback, or resumes execution after a computation is cancelled.

Workaround

This vulnerability can be mitigated by ensuring embedders only access the T in Store<T> during Store::epoch_deadline_callback and by not continuing to use a store after a timeout or epoch deadline.

CVSS Base Scores

version 4.0
version 3.1