Skip to content

CVE-2025-53901 Wasmtime has host panic with `fd_renumber` WASIp1 function

LowCVSS 3.5 EPSS 0.38%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

Wasmtime is a runtime for WebAssembly. Prior to versions 24.0.4, 33.0.2, and 34.0.2, a bug in Wasmtime's implementation of the WASIp1 set of import functions can lead to a WebAssembly guest inducing a panic in the host (embedder). The specific bug is triggered by calling path_open after calling fd_renumber with either two equal argument values or a second argument being equal to a previously-closed file descriptor number value. The corrupt state introduced in fd_renumber will lead to the subsequent opening of a file descriptor to panic. This panic cannot introduce memory unsafety or allow WebAssembly to break outside of its sandbox, however. There is no possible heap corruption or memory unsafety from this panic. This bug is in the implementation of Wasmtime's wasmtime-wasi crate which provides an implementation of WASIp1. The bug requires a specially crafted call to fd_renumber in addition to the ability to open a subsequent file descriptor. Opening a second file descriptor is only possible when a preopened directory was provided to the guest, and this is common amongst embeddings. A panic in the host is considered a denial-of-service vector for WebAssembly embedders and is thus a security issue in Wasmtime. This bug does not affect WASIp2 and embedders using components. In accordance with Wasmtime's release process, patch releases are available as 24.0.4, 33.0.2, and 34.0.2. Users of other release of Wasmtime are recommended to move to a supported release of Wasmtime. Embedders who are using components or are not providing guest access to create more file descriptors (e.g. via a preopened filesystem directory) are not affected by this issue. Otherwise, there is no workaround at this time, and affected embeddings are recommended to update to a patched version which will not cause a panic in the host.

Upgrade path

7 packages: 4 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
debian/rust-wasmtime(Debian 13) = 26.0.1+dfsg-3; = 26.0.1+dfsg-4; = 26.0.1+dfsg-5; = 26.0.1+dfsg-6 +40 more No fix listed No fix yet
ubuntu/rust-wasmtime(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/rust-wasmtime(Ubuntu 26.10) All versions No fix listed No fix yet
bytecodealliance wasmtime < 24.0.4; = < 24.0.4; = >= 33.0.0, < 33.0.2; = >= 34.0.0, < 34.0.2 +2 more 24.0.4, 33.0.2, 34.0.2 Fixed
crates.io wasmtime(crates.io) >= 10.0.0, < 24.0.4; >= 25.0.0, < 33.0.2; >= 33.0.0, < 33.0.2; >= 34.0.0, < 34.0.2 24.0.4, 33.0.2, 34.0.2 Fixed
crates.io wasmtime-wasi(crates.io) < 24.0.4; >= 25.0.0, < 33.0.2; >= 34.0.0, < 34.0.2 24.0.4, 33.0.2, 34.0.2 Fixed
debian/rust-wasmtime(Debian 14) < 36.0.5+dfsg-1; = 26.0.1+dfsg-3; = 26.0.1+dfsg-4; = 26.0.1+dfsg-5 +19 more 36.0.5+dfsg-1 Fixed

Affected products

ProductAffected versionsFixed in
crates.io wasmtime-wasi(crates.io) < 24.0.4 24.0.4
crates.io wasmtime-wasi(crates.io) >= 25.0.0, < 33.0.2 33.0.2
crates.io wasmtime-wasi(crates.io) >= 34.0.0, < 34.0.2 34.0.2
crates.io wasmtime(crates.io) >= 10.0.0, < 24.0.4 24.0.4
crates.io wasmtime(crates.io) >= 33.0.0, < 33.0.2 33.0.2
crates.io wasmtime(crates.io) >= 34.0.0, < 34.0.2 34.0.2
crates.io wasmtime(crates.io) >= 25.0.0, < 33.0.2 33.0.2
debian/rust-wasmtime(Debian:13) All versions No fix listed
debian/rust-wasmtime(Debian:13) = 26.0.1+dfsg-10 No fix listed
debian/rust-wasmtime(Debian:13) = 26.0.1+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:13) = 26.0.1+dfsg-4 No fix listed
debian/rust-wasmtime(Debian:13) = 26.0.1+dfsg-5 No fix listed
debian/rust-wasmtime(Debian:13) = 26.0.1+dfsg-6 No fix listed
debian/rust-wasmtime(Debian:13) = 26.0.1+dfsg-7 No fix listed
debian/rust-wasmtime(Debian:13) = 26.0.1+dfsg-8 No fix listed
debian/rust-wasmtime(Debian:13) = 26.0.1+dfsg-9 No fix listed
debian/rust-wasmtime(Debian:13) = 27.0.0+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:13) = 27.0.0+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:13) = 27.0.0+dfsg-4 No fix listed
debian/rust-wasmtime(Debian:13) = 28.0.1+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:13) = 28.0.1+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:13) = 28.0.1+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:13) = 29.0.1+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:13) = 29.0.1+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:13) = 29.0.1+dfsg-3 No fix listed
Show 57 more
ProductAffected versionsFixed in
debian/rust-wasmtime(Debian:13) = 29.0.1+dfsg-4 No fix listed
debian/rust-wasmtime(Debian:13) = 29.0.1+dfsg-5 No fix listed
debian/rust-wasmtime(Debian:13) = 29.0.1+dfsg-6 No fix listed
debian/rust-wasmtime(Debian:13) = 29.0.1+dfsg-7 No fix listed
debian/rust-wasmtime(Debian:13) = 29.0.1+dfsg-8 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.11+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.12+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.12+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.12+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.13+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.5+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.5+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.5+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.5+dfsg-4 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.5+dfsg-5 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.6+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.6+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.6+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.6+dfsg-4 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.6+dfsg-5 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.6+dfsg-6 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.6+dfsg-7 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.7+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.8+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.9+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:13) = 36.0.9+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:14) < 36.0.5+dfsg-1 36.0.5+dfsg-1
debian/rust-wasmtime(Debian:14) = 26.0.1+dfsg-10 No fix listed
debian/rust-wasmtime(Debian:14) = 26.0.1+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:14) = 26.0.1+dfsg-4 No fix listed
debian/rust-wasmtime(Debian:14) = 26.0.1+dfsg-5 No fix listed
debian/rust-wasmtime(Debian:14) = 26.0.1+dfsg-6 No fix listed
debian/rust-wasmtime(Debian:14) = 26.0.1+dfsg-7 No fix listed
debian/rust-wasmtime(Debian:14) = 26.0.1+dfsg-8 No fix listed
debian/rust-wasmtime(Debian:14) = 26.0.1+dfsg-9 No fix listed
debian/rust-wasmtime(Debian:14) = 27.0.0+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:14) = 27.0.0+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:14) = 27.0.0+dfsg-4 No fix listed
debian/rust-wasmtime(Debian:14) = 28.0.1+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:14) = 28.0.1+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:14) = 28.0.1+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:14) = 29.0.1+dfsg-1 No fix listed
debian/rust-wasmtime(Debian:14) = 29.0.1+dfsg-2 No fix listed
debian/rust-wasmtime(Debian:14) = 29.0.1+dfsg-3 No fix listed
debian/rust-wasmtime(Debian:14) = 29.0.1+dfsg-4 No fix listed
debian/rust-wasmtime(Debian:14) = 29.0.1+dfsg-5 No fix listed
debian/rust-wasmtime(Debian:14) = 29.0.1+dfsg-6 No fix listed
debian/rust-wasmtime(Debian:14) = 29.0.1+dfsg-7 No fix listed
debian/rust-wasmtime(Debian:14) = 29.0.1+dfsg-8 No fix listed
bytecodealliance wasmtime = < 24.0.4 No fix listed
bytecodealliance wasmtime = >= 33.0.0, < 33.0.2 No fix listed
bytecodealliance wasmtime = >= 34.0.0, < 34.0.2 No fix listed
ubuntu/rust-wasmtime(Ubuntu:24.04) All versions No fix listed
bytecodealliance wasmtime < 24.0.4 24.0.4
bytecodealliance wasmtime >= 33.0.0, < 33.0.2 33.0.2
bytecodealliance wasmtime >= 34.0.0, < 34.0.2 34.0.2
ubuntu/rust-wasmtime(Ubuntu:26.10) All versions No fix listed

References