Time-of-check Time-of-use (TOCTOU) Race Condition Affecting wasmtime package, versions >=19.0.0 <21.0.2>=22.0.0 <22.0.1>=23.0.0 <23.0.3>=24.0.0 <24.0.1>=25.0.0 <25.0.2


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (11th 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-8184990
  • published13 Oct 2024
  • disclosed9 Oct 2024
  • creditUnknown

Introduced: 9 Oct 2024

CVE-2024-47813  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade wasmtime to version 21.0.2, 22.0.1, 23.0.3, 24.0.1, 25.0.2 or higher.

Overview

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition in the internal type registry management. An attacker can manipulate the control-flow integrity and type safety by exploiting the time-of-check versus time-of-use bug, leading to double-unregistration of type entries. This is only exploitable if multiple threads concurrently create and drop type instances associated with the same wasmtime::Engine.

CVSS Scores

version 4.0
version 3.1