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
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
Introduced: 9 Oct 2024
CVE-2024-47813 Open this link in a new tabHow 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
.