Operation on a Resource after Expiration or Release Affecting wasmtime-wasi package, versions <24.0.4>=33.0.0 <33.0.2>=34.0.0 <34.0.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (14th 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-WASMTIMEWASI-10845565
  • published20 Jul 2025
  • disclosed18 Jul 2025
  • creditUnknown

Introduced: 18 Jul 2025

NewCVE-2025-53901  (opens in a new tab)
CWE-672  (opens in a new tab)

How to fix?

Upgrade wasmtime-wasi to version 24.0.4, 33.0.2, 34.0.2 or higher.

Overview

wasmtime-wasi is a Crate defining the Wasi type for Wasmtime, which represents a WASI instance which may be added to a linker.

Affected versions of this package are vulnerable to Operation on a Resource after Expiration or Release via the fd_renumber function in the preview1.rs file. An attacker can cause a panic in the host environment by invoking fd_renumber with either two identical arguments or with a second argument referencing a previously closed file descriptor, followed by a call to open a new file descriptor.

Note: This is only exploitable if the embedding provides a preopened directory to the guest, allowing the creation of additional file descriptors.

CVSS Base Scores

version 4.0
version 3.1