CVE-2025-53901 Wasmtime has host panic with `fd_renumber` WASIp1 function
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed 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
- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-fm79-3f68-h2fc third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- https://docs.wasmtime.dev/security-what-is-considered-a-security-vulnerability.html product
- https://docs.wasmtime.dev/stability-release.html product
- https://github.com/WebAssembly/WASI/blob/e1aa1cae4dda4c1f70f23fe11e922aae92f240a8/legacy/preview1/witx/wasi_snapshot_preview1.witx#L245-L260 product
- github.com product
- https://github.com/bytecodealliance/wasmtime/blob/037a6edadbc225decbea00a551aabf04203717d9/crates/wasi/src/preview1.rs#L1824-L1836 product
- rustsec.org vendor-advisory
- crates.io product
- Debian Security Tracker CVE-2025-53901 vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking