{"id":"CVE-2025-53901","published":"2025-07-18T17:10:11Z","modified":"2025-07-18T17:31:45Z","title":"Wasmtime has host panic with `fd_renumber` WASIp1 function","vendor":"bytecodealliance","product":"wasmtime","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.5,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00799,"percentile":0.53226,"provenance":"source"},"cwes":[{"id":"CWE-672","name":"Operation on a Resource after Expiration or Release"}],"references":[{"url":"https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-fm79-3f68-h2fc","tags":["x_refsource_CONFIRM"]},{"url":"https://docs.wasmtime.dev/security-what-is-considered-a-security-vulnerability.html","tags":["x_refsource_MISC"]},{"url":"https://docs.wasmtime.dev/stability-release.html","tags":["x_refsource_MISC"]},{"url":"https://github.com/WebAssembly/WASI/blob/e1aa1cae4dda4c1f70f23fe11e922aae92f240a8/legacy/preview1/witx/wasi_snapshot_preview1.witx#L245-L260","tags":["x_refsource_MISC"]},{"url":"https://github.com/bytecodealliance/wasmtime/blob/037a6edadbc225decbea00a551aabf04203717d9/crates/wasi/src/preview1.rs#L1824-L1836","tags":["x_refsource_MISC"]}],"priority":{"score":13.1,"factors":[{"name":"EPSS percentile","points":10.65},{"name":"CVSS severity","points":2.45}]},"vendorSlug":"bytecodealliance","affectedVersions":[{"vendor":"bytecodealliance","product":"wasmtime","versions":["< 24.0.4",">= 33.0.0, < 33.0.2",">= 34.0.0, < 34.0.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-07-18T17:31:36.542423Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"wasmtime-wasi","vulnerableRanges":["<24.0.4",">=25.0.0, <33.0.2",">=34.0.0, <34.0.2"],"patched":["24.0.4","33.0.2","34.0.2"],"from":["GHSA-fm79-3f68-h2fc"],"provenance":"source"},{"ecosystem":"crates.io","package":"wasmtime","vulnerableRanges":[">=10.0.0, <24.0.4",">=33.0.0, <33.0.2",">=34.0.0, <34.0.2",">=25.0.0, <33.0.2"],"patched":["24.0.4","33.0.2","34.0.2"],"from":["GHSA-fm79-3f68-h2fc","RUSTSEC-2025-0046"],"provenance":"source"}],"summary":{"text":"The Wasmtime runtime's wasmtime-wasi crate, which implements the WASIp1 import functions, contains a flaw where calling path_open after fd_renumber with equal arguments or a previously closed descriptor number leaves corrupt state that causes a host panic. An attacker who controls a WebAssembly guest module can trigger this denial of service against the embedding host, but only if the guest is given a preopened directory so it can open further file descriptors, and only through WASIp1 rather than components or WASIp2.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:44Z"},"euvd":{"id":"EUVD-2025-21918","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-47763","published":"2024-10-09","fixed":"25.0.2","kev":false},{"cve":"CVE-2024-47813","published":"2024-10-09","fixed":"25.0.2","kev":false},{"cve":"CVE-2024-51745","published":"2024-11-05","fixed":"26.0.1","kev":false,"link":{"from":"CVE-2024-51745","to":"CVE-2025-53901","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:wasmtime","fromFixed":"24.0.2","toFixed":"24.0.4","daysApart":255}]}},{"cve":"CVE-2025-53901","published":"2025-07-18","fixed":"34.0.2","kev":false},{"cve":"CVE-2025-62711","published":"2025-10-24","fixed":"38.0.3","kev":false},{"cve":"CVE-2025-64345","published":"2025-11-12","fixed":"38.0.4","kev":false,"link":{"from":"CVE-2025-53901","to":"CVE-2025-64345","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:wasmtime","fromFixed":"24.0.4","toFixed":"24.0.5","daysApart":117}]}},{"cve":"CVE-2026-24116","published":"2026-01-27","fixed":"41.0.1","kev":false}],"package":"crates.io:wasmtime"}}