CVE-2026-54786Wasmtime: Leak in WASIp1 `fd_renumber` implementation
Wasmtime is a runtime for WebAssembly. All versions prior to 24.0.10; versions 25.0.0 through those before 36.0.11; versions 37.0.0 through those before 44.0.3; and versions 45.0.0 and 45.0.1 contain a native implementation of WASIp1 which 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. In a loop, guests can use fd_renumber to cause hosts to exhaust both resources and file descriptors. This bug only affects the native implementation of WASIp1, meaning 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. This issue has been fixed in versions 24.0.10, 36.0.11, 44.0.3, and 45.0.2.
What to do
Fixed builds are available from Debian, crates.io: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | rust-wasmtime | Fix pending | UBUNTU-CVE-2026-54786 | |
| Ubuntu 26.04 | rust-wasmtime | Under investigation | UBUNTU-CVE-2026-54786 | |
| Ubuntu 25.10 | rust-wasmtime | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-54786 | |
| Ubuntu 24.04 | rust-wasmtime | Under investigation | UBUNTU-CVE-2026-54786 | |
| Debian 14 | rust-wasmtime | Fixed | 36.0.11+dfsg-1 | DEBIAN-CVE-2026-54786 |
| Debian 13 | rust-wasmtime | Fix pending | DEBIAN-CVE-2026-54786 | |
| Red Hat Enterprise Linux 10 | virt-firmware-rs | Fix pending Fix deferred | ||
| crates.io library | wasmtime-wasi | Fixed | 44.0.3 | RUSTSEC-2026-0182 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- bytecodealliance wasmtime: affected: < 24.0.10, >= 25.0.0, < 36.0.11, >= 37.0.0, < 44.0.3, >= 45.0.0, < 45.0.2
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.