Improper Check for Unusual or Exceptional Conditions Affecting wasmtime package, versions >=39.0.0 <40.0.4>=41.0.0 <41.0.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (16th 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-15347366
  • published25 Feb 2026
  • disclosed24 Feb 2026
  • creditUnknown

Introduced: 24 Feb 2026

NewCVE-2026-27195  (opens in a new tab)
CWE-754  (opens in a new tab)

How to fix?

Upgrade wasmtime to version 40.0.4, 41.0.4 or higher.

Overview

Affected versions of this package are vulnerable to Improper Check for Unusual or Exceptional Conditions in the call_async function. An attacker can cause the application to panic and terminate unexpectedly by dropping the future returned by wasmtime::component::[Typed]Func::call_async before it resolves, and then invoking another call_async call on the same component instance.

Note: This is only exploitable if the component-model-async feature is enabled at compile time and the host embedder drops unresolved call_async futures.

Workaround

This vulnerability can be mitigated by:

  1. Disabling the component-model-async Cargo feature

  2. Ensuring every call_async future is awaited until completion

  3. Refraining from using the Store again after dropping a not-yet-resolved call_async future.

CVSS Base Scores

version 4.0
version 3.1