CVEfocus › CVE database › CVE-2026-54786

CVE-2026-54786Wasmtime: Leak in WASIp1 `fd_renumber` implementation

CVSS 2.3 LowEPSS 0.4% (higher than 23% of CVEs)Published 2026-07-01Updated 2026-07-02Assigner: GitHub_M

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.

CWE-400CWE-772

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

2Fixed
3Fix pending
2Under investigation
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10rust-wasmtimeFix pendingUBUNTU-CVE-2026-54786
Ubuntu 26.04rust-wasmtimeUnder investigationUBUNTU-CVE-2026-54786
Ubuntu 25.10rust-wasmtimeWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-54786
Ubuntu 24.04rust-wasmtimeUnder investigationUBUNTU-CVE-2026-54786
Debian 14rust-wasmtimeFixed36.0.11+dfsg-1DEBIAN-CVE-2026-54786
Debian 13rust-wasmtimeFix pendingDEBIAN-CVE-2026-54786
Red Hat Enterprise Linux 10virt-firmware-rsFix pending
Fix deferred
crates.io librarywasmtime-wasiFixed44.0.3RUSTSEC-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.

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.