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

- Severity: Low 3.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2025-07-18T12:00:00.000Z
- Modified: 2026-10-12T18:00:06.810Z
- Also known as: GHSA-fm79-3f68-h2fc, RUSTSEC-2025-0046
- Weaknesses: CWE-672
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- bytecodealliance wasmtime: < 24.0.4; >= 33.0.0, < 33.0.2; >= 34.0.0, < 34.0.2; before 24.0.4; from 33.0.0 before 33.0.2; from 34.0.0 before 34.0.2
- wasmtime-wasi (crates.io): before 24.0.4; from 25.0.0 before 33.0.2; from 34.0.0 before 34.0.2
- wasmtime (crates.io): from 10.0.0 before 24.0.4; from 33.0.0 before 33.0.2; from 34.0.0 before 34.0.2; from 25.0.0 before 33.0.2

## Every score

- GitHub_M: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L`
- RustSec Advisory Database: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-fm79-3f68-h2fc> (third-party-advisory, web)
- <https://docs.wasmtime.dev/security-what-is-considered-a-security-vulnerability.html> (product, web)
- <https://docs.wasmtime.dev/stability-release.html> (product, web)
- <https://github.com/WebAssembly/WASI/blob/e1aa1cae4dda4c1f70f23fe11e922aae92f240a8/legacy/preview1/witx/wasi_snapshot_preview1.witx#L245-L260> (product, web)
- <https://github.com/bytecodealliance/wasmtime/blob/037a6edadbc225decbea00a551aabf04203717d9/crates/wasi/src/preview1.rs#L1824-L1836> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-53901> (advisory)
- <https://github.com/bytecodealliance/wasmtime/pull/11277> (web)
- <https://github.com/bytecodealliance/wasmtime/pull/11278> (web)
- <https://github.com/bytecodealliance/wasmtime/pull/11279> (web)
- <https://github.com/bytecodealliance/wasmtime/pull/11281> (web)
- <https://github.com/bytecodealliance/wasmtime> (package)
- <https://rustsec.org/advisories/RUSTSEC-2025-0046.html> (advisory, web)
- <https://crates.io/crates/wasmtime> (package)

## Sources

- CVE List: [CVE-2025-53901](https://www.cve.org/CVERecord?id=CVE-2025-53901), CVE Terms of Use, modified 2025-07-18
- GitHub Advisory Database: [GHSA-fm79-3f68-h2fc](https://github.com/advisories/GHSA-fm79-3f68-h2fc), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2025-0046](https://rustsec.org/advisories/RUSTSEC-2025-0046.html), CC0-1.0, modified 2026-10-12
- NVD: [CVE-2025-53901](https://nvd.nist.gov/vuln/detail/CVE-2025-53901), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-53901 · Whole record: https://cve.day/CVE-2025-53901.json · Rebuilt by cve.day 2026-11-25T22:59:01.426Z
