CVE-2026-54786 — Wasmtime has a leak in wasmtime-wasi — CVE Details
Wasmtime has a leak in WASIp1 `fd_renumber` implementation
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.37%). Schedule for your next planned update.
Does your project use an affected wasmtime-wasi version?
Paste your Cargo.lock to check it for CVE-2026-54786 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
Wasmtime's native implementation of WASIp1 suffers from a leak in the fd_renumber function where the file descriptor being renumbered to is not properly closed. Wasmtime's implementation erroneously only updated the table of descriptors for WASIp1 and didn't update the underlying table of descriptors used by the host. This behavior means that while fd_renumber works correctly from a guest's perspective it ends up leaking resources in the host that aren't cleaned up until the corresponding Store is destroyed. This means that guests can, in a loop, use fd_renumber to cause hosts to exhaust resources or exhaust file descriptors.
This bug only affects the native implementation of WASIp1. This means that only runtimes which load core wasm modules and expose fd_renumber are affected. Runtimes are additionally only affected if they expose the ability to acquire a file descriptor, such as opening a file. For runtimes that deny access to files they are unaffected.
Patches
Wasmtime 24.0.10, 36.0.11, 44.0.3, and 45.0.2 have been released which fix this issue.
Workarounds
There are no workarounds for this issue and hosts are recommended to update.
Advisory Timeline
- First published August 26, 2026 (92 days ago).
- Last revised August 26, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p wasmtime-wasi --precise 24.0.10
cargo update -p wasmtime-wasi --precise 44.0.3
cargo update -p wasmtime-wasi --precise 36.0.11
cargo update -p wasmtime-wasi --precise 45.0.2
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 1 ecosystem: crates.io (1).
| Package | Fixed In |
|---|---|
| wasmtime-wasi crates.io · Affected: All versions | 24.0.10 |
| wasmtime-wasi crates.io · Affected: All versions | 44.0.3 |
| wasmtime-wasi crates.io · Affected: All versions | 36.0.11 |
| wasmtime-wasi crates.io · Affected: All versions | 45.0.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-400Uncontrolled Resource ConsumptionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.0 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L
References
- https://github.com/bytecodealliance/wasmtime/security/advisories/GHSA-3p27-qvp9-27qfWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-54786ADVISORY
- https://github.com/bytecodealliance/wasmtime/pull/13650WEB
- https://github.com/bytecodealliance/wasmtime/commit/100bfe27253d2ce5154ddddf66d06e30f3fa6824WEB
- https://github.com/bytecodealliance/wasmtime/commit/36b305d827149ac0336ddcbc0a378c303339d195WEB
- https://github.com/bytecodealliance/wasmtime/commit/72493b11ed5df382c92a9dfb8b6bc064e471f1cdWEB
- https://github.com/bytecodealliance/wasmtime/commit/e9fbe974c9698edef117323d981e13caf2097c13WEB
- https://github.com/bytecodealliance/wasmtime/commit/f069f125cb77a4a3dced19a77d73790610678622WEB
- https://github.com/bytecodealliance/wasmtimePACKAGE
- https://github.com/bytecodealliance/wasmtime/releases/tag/v24.0.10WEB
- https://github.com/bytecodealliance/wasmtime/releases/tag/v36.0.11WEB
- https://github.com/bytecodealliance/wasmtime/releases/tag/v44.0.3WEB
- https://github.com/bytecodealliance/wasmtime/releases/tag/v45.0.2WEB
- https://rustsec.org/advisories/RUSTSEC-2026-0182.htmlWEB
Frequently Asked Questions
- What is CVE-2026-54786?
- Wasmtime has a leak in WASIp1 `fd_renumber` implementation. This vulnerability has been assigned a severity rating of LOW (CVSS score: 5.0/10).
- How do I check if my project is affected by CVE-2026-54786?
- CVE-2026-54786 affects wasmtime-wasi. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-54786 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is a below-median EPSS score — only 22.7% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-47261HIGH
WASI path_open(TRUNCATE) bypasses `FilePerms::WRITE` host restriction
- CVE-2026-118688HIGH
Filesystem sandbox escape when renaming symlinks with trailing slashes
- CVE-2026-47261HIGH
wasmtime-wasi: WASI path_open(TRUNCATE) bypasses `FilePerms::WRITE` host restriction
- CVE-2026-58494MEDIUM
WASI hard links and renames bypass wasmtime-wasi's FilePerms for destination
- CVE-2026-115387MEDIUM
Guest can panic host through filesystem datetime overflow
- CVE-2026-115385MEDIUM
Guest can panic host through filesystem timestamp before the epoch on wasip3
- CVE-2026-126410MEDIUM
wasip3 UDP `send` can deliver a datagram to an address only allowed for receiving
- CVE-2026-58494MEDIUM
Wasmtime: WASI hard links bypass wasmtime-wasi's FilePerms for destination