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

    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 ID SNYK-RUST-WASMTIME-8184990
  • published 13 Oct 2024
  • disclosed 9 Oct 2024
  • credit Unknown

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
Expand this section

Snyk

Recommended
1 low
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    High
  • Attack Requirements (AT)
    Present
  • Privileges Required (PR)
    High
  • User Interaction (UI)
    Active
  • Confidentiality (VC)
    None
  • Integrity (VI)
    Low
  • Availability (VA)
    Low
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None